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.
This commit is contained in:
Anirudha Bose 2020-09-06 20:37:44 +02:00 committed by John C. Vernaleo
parent 95fea6420c
commit 3b926ef77b

View file

@ -64,6 +64,7 @@ type ListTransactionsResult struct {
Amount float64 `json:"amount"` Amount float64 `json:"amount"`
BIP125Replaceable string `json:"bip125-replaceable,omitempty"` BIP125Replaceable string `json:"bip125-replaceable,omitempty"`
BlockHash string `json:"blockhash,omitempty"` BlockHash string `json:"blockhash,omitempty"`
BlockHeight *int32 `json:"blockheight,omitempty"`
BlockIndex *int64 `json:"blockindex,omitempty"` BlockIndex *int64 `json:"blockindex,omitempty"`
BlockTime int64 `json:"blocktime,omitempty"` BlockTime int64 `json:"blocktime,omitempty"`
Category string `json:"category"` Category string `json:"category"`
@ -71,6 +72,7 @@ type ListTransactionsResult struct {
Fee *float64 `json:"fee,omitempty"` Fee *float64 `json:"fee,omitempty"`
Generated bool `json:"generated,omitempty"` Generated bool `json:"generated,omitempty"`
InvolvesWatchOnly bool `json:"involveswatchonly,omitempty"` InvolvesWatchOnly bool `json:"involveswatchonly,omitempty"`
Label *string `json:"label,omitempty"`
Time int64 `json:"time"` Time int64 `json:"time"`
TimeReceived int64 `json:"timereceived"` TimeReceived int64 `json:"timereceived"`
Trusted bool `json:"trusted"` Trusted bool `json:"trusted"`