2599d13c94 rpc: Remove deprecated migration code (Vasil Dimov)
Pull request description:
Don't accept a second argument to `sendrawtransaction` and
`testmempoolaccept` of type `bool`. Actually even the code before this
change would not accept `bool`, but it would print a long explanatory
message when rejecting it: "Second argument must be numeric (maxfeerate)
and no longer supports a boolean. To allow a transaction with high fees,
set maxfeerate to 0."
This was scheduled for removal in 6c0a6f73e.
ACKs for top commit:
MarcoFalke:
ACK 2599d13c94📅
Tree-SHA512: e2c74c0bde88e20149d0deab0845851bb3979143530a6bae4f46769d61b607ad2e2347f8969093c2461a80c47661732dc0b3def140f8ce84081719adda3b3811
// TODO: temporary migration code for old clients. Remove in v0.20
DEFAULT_MAX_RAW_TX_FEE_RATE:
if(request.params[1].isBool()){
CFeeRate(AmountFromValue(request.params[1]));
throwJSONRPCError(RPC_INVALID_PARAMETER,"Second argument must be numeric (maxfeerate)andnolongersupportsaboolean.Toallowatransactionwithhighfees,setmaxfeerateto0.");
// TODO: temporary migration code for old clients. Remove in v0.20
DEFAULT_MAX_RAW_TX_FEE_RATE:
if(request.params[1].isBool()){
CFeeRate(AmountFromValue(request.params[1]));
throwJSONRPCError(RPC_INVALID_PARAMETER,"Second argument must be numeric (maxfeerate)andnolongersupportsaboolean.Toallowatransactionwithhighfees,setmaxfeerateto0.");