0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-08 10:31:50 -05:00

Add sanity checks for various ATMPArgs booleans

This commit is contained in:
Greg Sanders 2024-05-22 10:11:15 -04:00
parent 20d8936d8b
commit 2fd34ba504

View file

@ -575,6 +575,14 @@ public:
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);
}
};