From 0512ddd8f828f6f3350049d97e2f93242a843111 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Thu, 10 Apr 2014 23:00:15 -0500 Subject: [PATCH] Correct ListTransactionsResult. This commit tweaks the ListTransactions result a bit so it is compatible with the reference implementation. --- jsonapi.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jsonapi.go b/jsonapi.go index 808f505f..bd21971c 100644 --- a/jsonapi.go +++ b/jsonapi.go @@ -146,7 +146,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"` @@ -155,7 +155,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.