From 0a14b19276a20aa857dbef274b18c0c36d7af973 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 11 Apr 2014 14:56:55 -0500 Subject: [PATCH] Redo ListTransactionsResult fix. This was also lost in the move to jsonresults.go. --- jsonresults.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jsonresults.go b/jsonresults.go index 095cfb7e..d88a3755 100644 --- a/jsonresults.go +++ b/jsonresults.go @@ -128,7 +128,7 @@ type ListTransactionsResult struct { Amount float64 `json:"amount"` Fee float64 `json:"fee"` Confirmations int64 `json:"confirmations"` - Generated bool `json:"generated"` + Generated bool `json:"generated,omitempty"` BlockHash string `json:"blockhash,omitempty"` BlockIndex int64 `json:"blockindex,omitempty"` BlockTime int64 `json:"blocktime,omitempty"` @@ -137,7 +137,7 @@ type ListTransactionsResult struct { Time int64 `json:"time"` TimeReceived int64 `json:"timereceived"` Comment string `json:"comment,omitempty"` - OtherAccount float64 `json:"otheraccount"` + OtherAccount string `json:"otheraccount"` } // TxRawResult models the data from the getrawtransaction command.