mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-23 06:55:37 +02:00
Add sanity checks for various ATMPArgs booleans
This commit is contained in:
parent
20d8936d8b
commit
2fd34ba504
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user