[rpc] send: fix parsing replaceable option

This commit is contained in:
Sjors Provoost
2020-09-17 20:57:51 +02:00
parent efc9b85e6f
commit 0fc1c685e1
2 changed files with 7 additions and 3 deletions

View File

@@ -3995,7 +3995,7 @@ static RPCHelpMan send()
int change_position;
bool rbf = pwallet->m_signal_rbf;
if (options.exists("replaceable")) {
rbf = options["add_to_wallet"].get_bool();
rbf = options["replaceable"].get_bool();
}
CMutableTransaction rawTx = ConstructTransaction(options["inputs"], request.params[0], options["locktime"], rbf);
CCoinControl coin_control;