mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 00:37:43 +00:00
Merge pull request #4108
8c05237
blockchain: cache next block difficulty after adding a block (moneromooo-monero)
This commit is contained in:
commit
dda05f357a
1 changed files with 1 additions and 0 deletions
|
@ -3696,6 +3696,7 @@ leave:
|
||||||
|
|
||||||
// appears to be a NOP *and* is called elsewhere. wat?
|
// appears to be a NOP *and* is called elsewhere. wat?
|
||||||
m_tx_pool.on_blockchain_inc(new_height, id);
|
m_tx_pool.on_blockchain_inc(new_height, id);
|
||||||
|
get_difficulty_for_next_block(); // just to cache it
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue