Use 0 instead of -1 for zero-conf listtransactions results.
Fixes #278.
This commit is contained in:
parent
736a46ff81
commit
4637d62baf
1 changed files with 1 additions and 1 deletions
|
@ -843,7 +843,7 @@ func ListTransactions(details *wtxmgr.TxDetails, syncHeight int32, net *chaincfg
|
||||||
var (
|
var (
|
||||||
blockHashStr string
|
blockHashStr string
|
||||||
blockTime int64
|
blockTime int64
|
||||||
confirmations int64 = -1
|
confirmations int64
|
||||||
)
|
)
|
||||||
if details.Block.Height != -1 {
|
if details.Block.Height != -1 {
|
||||||
blockHashStr = details.Block.Hash.String()
|
blockHashStr = details.Block.Hash.String()
|
||||||
|
|
Loading…
Reference in a new issue