Skip to content
Permalink
Browse files

Clear misc caches when popping blocks

  • Loading branch information...
miltonf committed Apr 9, 2019
1 parent 4a255c9 commit fd1db9f8a0a5235bdd449a15646196651edbcdb1
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/cryptonote_core/blockchain.cpp
@@ -588,6 +588,12 @@ block Blockchain::pop_block_from_blockchain()
}
}
}

m_blocks_longhash_table.clear();
m_scan_table.clear();
m_blocks_txs_check.clear();
m_check_txin_table.clear();

update_next_cumulative_size_limit();
m_tx_pool.on_blockchain_dec(m_db->height()-1, get_tail_id());

0 comments on commit fd1db9f

Please sign in to comment.
You can’t perform that action at this time.