rpc: Default rbf enabled

This commit is contained in:
Andrew Chow
2022-07-13 16:29:27 -04:00
parent e3c33637ba
commit 61d9149e78
6 changed files with 14 additions and 11 deletions

View File

@@ -159,7 +159,7 @@ static std::vector<RPCArg> CreateTxDoc()
},
},
{"locktime", RPCArg::Type::NUM, RPCArg::Default{0}, "Raw locktime. Non-0 value also locktime-activates inputs"},
{"replaceable", RPCArg::Type::BOOL, RPCArg::Default{false}, "Marks this transaction as BIP125-replaceable.\n"
{"replaceable", RPCArg::Type::BOOL, RPCArg::Default{true}, "Marks this transaction as BIP125-replaceable.\n"
"Allows this transaction to be replaced by a transaction with higher fees. If provided, it is an error if explicit sequence numbers are incompatible."},
};
}
@@ -304,7 +304,7 @@ static RPCHelpMan createrawtransaction()
}, true
);
bool rbf = false;
std::optional<bool> rbf;
if (!request.params[3].isNull()) {
rbf = request.params[3].isTrue();
}
@@ -1453,7 +1453,7 @@ static RPCHelpMan createpsbt()
}, true
);
bool rbf = false;
std::optional<bool> rbf;
if (!request.params[3].isNull()) {
rbf = request.params[3].isTrue();
}