Skip to content

Commit

Permalink
Clear misc caches when popping blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
miltonf committed Apr 9, 2019
1 parent 4a255c9 commit fd1db9f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cryptonote_core/blockchain.cpp
Expand Up @@ -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(); update_next_cumulative_size_limit();
m_tx_pool.on_blockchain_dec(m_db->height()-1, get_tail_id()); m_tx_pool.on_blockchain_dec(m_db->height()-1, get_tail_id());


Expand Down

0 comments on commit fd1db9f

Please sign in to comment.