Skip to content

Commit

Permalink
Add sanity checks for various ATMPArgs booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs committed May 22, 2024
1 parent 6b33732 commit 7689438
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,14 @@ class MemPoolAccept
m_client_maxfeerate{client_maxfeerate},
m_allow_carveouts{allow_carveouts}
{
// If we are using package feerates, we must be doing package submission.
// It also means carveouts and sibling eviction are not permitted.
if (m_package_feerates) {
Assume(m_package_submission);
Assume(!m_allow_carveouts);
Assume(!m_allow_sibling_eviction);
}
if (m_allow_sibling_eviction) Assume(m_allow_replacement);
}
};

Expand Down

0 comments on commit 7689438

Please sign in to comment.