Skip to content

Commit

Permalink
btcjson: update ListTransactionsResult for Bitcoin 0.20.0
Browse files Browse the repository at this point in the history
This only adds new fields as optional, in order to make this change
backwards compatible with older versions of Bitcoin Core.
  • Loading branch information
onyb authored and jcvernaleo committed Sep 8, 2020
1 parent 95fea64 commit 3b926ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions btcjson/walletsvrresults.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,15 @@ 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"`
Confirmations int64 `json:"confirmations"`
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"`
Expand Down

0 comments on commit 3b926ef

Please sign in to comment.