Use 0 instead of -1 for zero-conf listtransactions results.

Fixes #278.
This commit is contained in:
Josh Rickmar 2015-05-13 20:04:22 -04:00
parent 736a46ff81
commit 4637d62baf

View file

@ -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()