bugfix: Unconfirmed transaction verbose output
Created by: dagurval
This fixes an issue where it was not possible to get verbose transaction output for unconfirmed transactions.
In addition, the following changes are made to verbose output for unconfirmed transactions:
-
time
is None instead of 0 -
blockhash
is None instead of 0 -
height
is None instead of 0 -
confirmations
is None instead of 0. This is because0
implies confirmed in a minority chain for some bitcoind implementations and unconfirmed in others.
Document that verbose output is consistent for ElectrsCash, regardless of bitcoind backend.
Test plan
Functional test improved with unconfirmed transaction + testing of all these fields for both confirmed and unconfirmed.
./contrib/run_functional_tests.sh