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:
parent
20d8936d8b
commit
2fd34ba504
1 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue