mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2025-03-24 22:10:15 -06:00
Merge pull request #3919
ace2eda blockchain: pop forked blocks only when DB is not read-only (stoffu)
This commit is contained in:
commit
9eb51887b0
@ -444,7 +444,7 @@ bool Blockchain::init(BlockchainDB* db, const network_type nettype, bool offline
|
||||
m_db->block_txn_stop();
|
||||
|
||||
uint64_t num_popped_blocks = 0;
|
||||
while (true)
|
||||
while (!m_db->is_read_only())
|
||||
{
|
||||
const uint64_t top_height = m_db->height() - 1;
|
||||
const crypto::hash top_id = m_db->top_block_hash();
|
||||
|
Loading…
x
Reference in New Issue
Block a user