mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Remove unused TransactionError constants
This commit is contained in:
@@ -1050,10 +1050,11 @@ static UniValue sendrawtransaction(const JSONRPCRequest& request)
|
||||
|
||||
bool allowhighfees = false;
|
||||
if (!request.params[1].isNull()) allowhighfees = request.params[1].get_bool();
|
||||
const CAmount highfee{allowhighfees ? 0 : ::maxTxFee};
|
||||
uint256 txid;
|
||||
TransactionError err;
|
||||
std::string err_string;
|
||||
if (!BroadcastTransaction(tx, txid, err, err_string, allowhighfees)) {
|
||||
const TransactionError err = BroadcastTransaction(tx, txid, err_string, highfee);
|
||||
if (TransactionError::OK != err) {
|
||||
throw JSONRPCTransactionError(err, err_string);
|
||||
}
|
||||
|
||||
@@ -1478,8 +1479,8 @@ UniValue combinepsbt(const JSONRPCRequest& request)
|
||||
}
|
||||
|
||||
PartiallySignedTransaction merged_psbt;
|
||||
TransactionError error;
|
||||
if (!CombinePSBTs(merged_psbt, error, psbtxs)) {
|
||||
const TransactionError error = CombinePSBTs(merged_psbt, psbtxs);
|
||||
if (error != TransactionError::OK) {
|
||||
throw JSONRPCTransactionError(error);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user