mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-05 05:14:51 +02:00
rpc: Default rbf enabled
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user