@@ -606,6 +606,7 @@ void CTxMemPool::removeRecursive(const CTransaction &origTx, MemPoolRemovalReaso
606
606
{
607
607
// Remove transaction from memory pool
608
608
AssertLockHeld (cs);
609
+ Assume (!m_have_changeset);
609
610
setEntries txToRemove;
610
611
txiter origit = mapTx.find (origTx.GetHash ());
611
612
if (origit != mapTx.end ()) {
@@ -637,6 +638,7 @@ void CTxMemPool::removeForReorg(CChain& chain, std::function<bool(txiter)> check
637
638
// Remove transactions spending a coinbase which are now immature and no-longer-final transactions
638
639
AssertLockHeld (cs);
639
640
AssertLockHeld (::cs_main);
641
+ Assume (!m_have_changeset);
640
642
641
643
setEntries txToRemove;
642
644
for (indexed_transaction_set::const_iterator it = mapTx.begin (); it != mapTx.end (); it++) {
@@ -675,6 +677,7 @@ void CTxMemPool::removeConflicts(const CTransaction &tx)
675
677
void CTxMemPool::removeForBlock (const std::vector<CTransactionRef>& vtx, unsigned int nBlockHeight)
676
678
{
677
679
AssertLockHeld (cs);
680
+ Assume (!m_have_changeset);
678
681
std::vector<RemovedMempoolTransactionInfo> txs_removed_for_block;
679
682
txs_removed_for_block.reserve (vtx.size ());
680
683
for (const auto & tx : vtx)
@@ -1093,6 +1096,7 @@ void CTxMemPool::RemoveStaged(setEntries &stage, bool updateDescendants, MemPool
1093
1096
int CTxMemPool::Expire (std::chrono::seconds time)
1094
1097
{
1095
1098
AssertLockHeld (cs);
1099
+ Assume (!m_have_changeset);
1096
1100
indexed_transaction_set::index<entry_time>::type::iterator it = mapTx.get <entry_time>().begin ();
1097
1101
setEntries toremove;
1098
1102
while (it != mapTx.get <entry_time>().end () && it->GetTime () < time) {
@@ -1163,6 +1167,7 @@ void CTxMemPool::trackPackageRemoved(const CFeeRate& rate) {
1163
1167
1164
1168
void CTxMemPool::TrimToSize (size_t sizelimit, std::vector<COutPoint>* pvNoSpendsRemaining) {
1165
1169
AssertLockHeld (cs);
1170
+ Assume (!m_have_changeset);
1166
1171
1167
1172
unsigned nTxnRemoved = 0 ;
1168
1173
CFeeRate maxFeeRateRemoved (0 );
0 commit comments