fix: MnEHF transaction should be accepted to mempool bypass fee limits

This commit is contained in:
Konstantin Akimov 2023-08-04 03:55:59 +07:00 committed by PastaPastaPasta
parent 612faa8868
commit c8d84a8c33

View File

@ -796,7 +796,11 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws)
// No transactions are allowed below minRelayTxFee except from disconnected // No transactions are allowed below minRelayTxFee except from disconnected
// blocks // blocks
if (!bypass_limits && !CheckFeeRate(nSize, nModifiedFees, state)) return false; // Checking of fee for MNHF_SIGNAL should be skipped: mnhf does not have
// inputs, outputs, or fee
if (tx.nVersion != 3 || tx.nType != TRANSACTION_MNHF_SIGNAL) {
if (!bypass_limits && !CheckFeeRate(nSize, nModifiedFees, state)) return false;
}
if (nAbsurdFee && nFees > nAbsurdFee) if (nAbsurdFee && nFees > nAbsurdFee)
return state.Invalid(TxValidationResult::TX_NOT_STANDARD, return state.Invalid(TxValidationResult::TX_NOT_STANDARD,