diff --git a/src/node/transaction.cpp b/src/node/transaction.cpp index 7446339e07..8e3e26b417 100644 --- a/src/node/transaction.cpp +++ b/src/node/transaction.cpp @@ -68,7 +68,10 @@ TransactionError BroadcastTransaction(NodeContext& node, const CTransactionRef t wtxid = mempool_tx->GetWitnessHash(); } else { // Transaction is not already in the mempool. - const bool max_tx_fee_set{(std::holds_alternative(max_tx_fee) ? std::get(max_tx_fee) : std::get(max_tx_fee).GetFeePerK()) > 0}; + bool max_tx_fee_set{(std::holds_alternative(max_tx_fee) ? std::get(max_tx_fee) : std::get(max_tx_fee).GetFeePerK()) > 0}; + if (ignore_rejects.count("absurdly-high-fee") || ignore_rejects.count("max-fee-exceeded")) { + max_tx_fee_set = false; + } if (max_tx_fee_set) { // First, call ATMP with test_accept and check the fee. If ATMP // fails here, return error immediately.