From 3b926ef77b8cafee93e8898ddc4684cd2606aec6 Mon Sep 17 00:00:00 2001 From: Anirudha Bose Date: Sun, 6 Sep 2020 20:37:44 +0200 Subject: [PATCH] btcjson: update ListTransactionsResult for Bitcoin 0.20.0 This only adds new fields as optional, in order to make this change backwards compatible with older versions of Bitcoin Core. --- btcjson/walletsvrresults.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/btcjson/walletsvrresults.go b/btcjson/walletsvrresults.go index d860eceb..4ad74b1e 100644 --- a/btcjson/walletsvrresults.go +++ b/btcjson/walletsvrresults.go @@ -64,6 +64,7 @@ type ListTransactionsResult struct { Amount float64 `json:"amount"` BIP125Replaceable string `json:"bip125-replaceable,omitempty"` BlockHash string `json:"blockhash,omitempty"` + BlockHeight *int32 `json:"blockheight,omitempty"` BlockIndex *int64 `json:"blockindex,omitempty"` BlockTime int64 `json:"blocktime,omitempty"` Category string `json:"category"` @@ -71,6 +72,7 @@ type ListTransactionsResult struct { Fee *float64 `json:"fee,omitempty"` Generated bool `json:"generated,omitempty"` InvolvesWatchOnly bool `json:"involveswatchonly,omitempty"` + Label *string `json:"label,omitempty"` Time int64 `json:"time"` TimeReceived int64 `json:"timereceived"` Trusted bool `json:"trusted"`