mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-28 13:02:38 +02:00
node: Accept "absurdly-high-fee" and "max-fee-exceeded" reject reasons to ignore max_tx_fee
This commit is contained in:
parent
b4f6e44d2c
commit
890d993743
@ -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<CAmount>(max_tx_fee) ? std::get<CAmount>(max_tx_fee) : std::get<CFeeRate>(max_tx_fee).GetFeePerK()) > 0};
|
||||
bool max_tx_fee_set{(std::holds_alternative<CAmount>(max_tx_fee) ? std::get<CAmount>(max_tx_fee) : std::get<CFeeRate>(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.
|
||||
|
Loading…
Reference in New Issue
Block a user