Skip to content

Commit 2fd34ba

Browse files
committed
Add sanity checks for various ATMPArgs booleans
1 parent 20d8936 commit 2fd34ba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/validation.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,14 @@ class MemPoolAccept
575575
m_client_maxfeerate{client_maxfeerate},
576576
m_allow_carveouts{allow_carveouts}
577577
{
578+
// If we are using package feerates, we must be doing package submission.
579+
// It also means carveouts and sibling eviction are not permitted.
580+
if (m_package_feerates) {
581+
Assume(m_package_submission);
582+
Assume(!m_allow_carveouts);
583+
Assume(!m_allow_sibling_eviction);
584+
}
585+
if (m_allow_sibling_eviction) Assume(m_allow_replacement);
578586
}
579587
};
580588

0 commit comments

Comments
 (0)