mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2025-01-26 19:22:57 -03:00
Merge pull request #1502
591d8368
core: invalidate difficulty cache when resetting blockchain (moneromooo-monero)
This commit is contained in:
commit
fdb1cda965
1 changed files with 1 additions and 0 deletions
|
@ -525,6 +525,7 @@ bool Blockchain::reset_and_set_genesis_block(const block& b)
|
||||||
{
|
{
|
||||||
LOG_PRINT_L3("Blockchain::" << __func__);
|
LOG_PRINT_L3("Blockchain::" << __func__);
|
||||||
CRITICAL_REGION_LOCAL(m_blockchain_lock);
|
CRITICAL_REGION_LOCAL(m_blockchain_lock);
|
||||||
|
m_timestamps_and_difficulties_height = 0;
|
||||||
m_alternative_chains.clear();
|
m_alternative_chains.clear();
|
||||||
m_db->reset();
|
m_db->reset();
|
||||||
m_hardfork->init();
|
m_hardfork->init();
|
||||||
|
|
Loading…
Add table
Reference in a new issue