You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: temporary migration code for old clients. Remove in v0.20
1073
+
if (request.params[1].isBool()) {
1074
+
throwJSONRPCError(RPC_INVALID_PARAMETER, "Second argument must be numeric (maxfeerate) and no longer supports a boolean. To allow a transaction with high fees, set maxfeerate to 0.");
1075
+
} elseif (request.params[1].isNum()) {
1076
+
size_t weight = GetTransactionWeight(*tx);
1077
+
CFeeRate fr(AmountFromValue(request.params[1]));
1078
+
// the +3/4 part rounds the value up, and is the same formula used when
1079
+
// calculating the fee for a transaction
1080
+
// (see GetVirtualTransactionSize)
1081
+
max_raw_tx_fee = fr.GetFee((weight+3)/4);
1082
+
} elseif (!request.params[1].isNull()) {
1083
+
throwJSONRPCError(RPC_INVALID_PARAMETER, "second argument (maxfeerate) must be numeric");
0 commit comments