Skip to content

Commit ce207d6

Browse files
committed
wallet, bugfix: allow send to take string fee rate values
1 parent 751ffaa commit ce207d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4089,7 +4089,7 @@ static RPCHelpMan send()
40894089
UniValueType(), // outputs (ARR or OBJ, checked later)
40904090
UniValue::VNUM, // conf_target
40914091
UniValue::VSTR, // estimate_mode
4092-
UniValue::VNUM, // fee_rate
4092+
UniValueType(), // fee_rate, will be checked by AmountFromValue() in SetFeeEstimateMode()
40934093
UniValue::VOBJ, // options
40944094
}, true
40954095
);

test/functional/wallet_send.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ def run_test(self):
256256
assert res["complete"]
257257

258258
self.log.info("Test setting explicit fee rate")
259-
res1 = self.test_send(from_wallet=w0, to_wallet=w1, amount=1, arg_fee_rate=1, add_to_wallet=False)
260-
res2 = self.test_send(from_wallet=w0, to_wallet=w1, amount=1, fee_rate=1, add_to_wallet=False)
259+
res1 = self.test_send(from_wallet=w0, to_wallet=w1, amount=1, arg_fee_rate="1", add_to_wallet=False)
260+
res2 = self.test_send(from_wallet=w0, to_wallet=w1, amount=1, fee_rate="1", add_to_wallet=False)
261261
assert_equal(self.nodes[1].decodepsbt(res1["psbt"])["fee"], self.nodes[1].decodepsbt(res2["psbt"])["fee"])
262262

263263
res = self.test_send(from_wallet=w0, to_wallet=w1, amount=1, fee_rate=7, add_to_wallet=False)

0 commit comments

Comments
 (0)