From 4637d62bafdedb5ccdc8ced299cddff4700495b9 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Wed, 13 May 2015 20:04:22 -0400 Subject: [PATCH] Use 0 instead of -1 for zero-conf listtransactions results. Fixes #278. --- wallet/wallet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallet/wallet.go b/wallet/wallet.go index caef56a..4d1b4a5 100644 --- a/wallet/wallet.go +++ b/wallet/wallet.go @@ -843,7 +843,7 @@ func ListTransactions(details *wtxmgr.TxDetails, syncHeight int32, net *chaincfg var ( blockHashStr string blockTime int64 - confirmations int64 = -1 + confirmations int64 ) if details.Block.Height != -1 { blockHashStr = details.Block.Hash.String()