Skip to content

Commit

Permalink
btcjson+rpcclient: restore bitcoind compatibility
Browse files Browse the repository at this point in the history
The PR btcsuite#1594 introduced a change that made the order of parameters
relevant, if one of them is nil. This makes it harder to be backward
compatible with the same JSON message if an existing parameter in
bitcoind was re-purposed to have a different meaning.
  • Loading branch information
guggero committed Nov 12, 2020
1 parent 65d2b7a commit a735741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion btcjson/chainsvrcmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,8 @@ func NewSearchRawTransactionsCmd(address string, verbose, skip, count *int, vinE
// SendRawTransactionCmd defines the sendrawtransaction JSON-RPC command.
type SendRawTransactionCmd struct {
HexTx string
AllowHighFees *bool `jsonrpcdefault:"false"`
MaxFeeRate *int32
AllowHighFees *bool `jsonrpcdefault:"false"`
}

// NewSendRawTransactionCmd returns a new instance which can be used to issue a
Expand Down

0 comments on commit a735741

Please sign in to comment.