Skip to content

Commit a735741

Browse files
committed
btcjson+rpcclient: restore bitcoind compatibility
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.
1 parent 65d2b7a commit a735741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

btcjson/chainsvrcmds.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -822,8 +822,8 @@ func NewSearchRawTransactionsCmd(address string, verbose, skip, count *int, vinE
822822
// SendRawTransactionCmd defines the sendrawtransaction JSON-RPC command.
823823
type SendRawTransactionCmd struct {
824824
HexTx string
825-
AllowHighFees *bool `jsonrpcdefault:"false"`
826825
MaxFeeRate *int32
826+
AllowHighFees *bool `jsonrpcdefault:"false"`
827827
}
828828

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

0 commit comments

Comments
 (0)