mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 00:37:43 +00:00
core: fix lock ordering bug at init time
This commit is contained in:
parent
ab594cfee9
commit
878205f143
1 changed files with 2 additions and 1 deletions
|
@ -279,7 +279,8 @@ uint64_t Blockchain::get_current_blockchain_height() const
|
||||||
bool Blockchain::init(BlockchainDB* db, const bool testnet, const cryptonote::test_options *test_options)
|
bool Blockchain::init(BlockchainDB* db, const bool testnet, const cryptonote::test_options *test_options)
|
||||||
{
|
{
|
||||||
LOG_PRINT_L3("Blockchain::" << __func__);
|
LOG_PRINT_L3("Blockchain::" << __func__);
|
||||||
CRITICAL_REGION_LOCAL(m_blockchain_lock);
|
CRITICAL_REGION_LOCAL(m_tx_pool);
|
||||||
|
CRITICAL_REGION_LOCAL1(m_blockchain_lock);
|
||||||
|
|
||||||
bool fakechain = test_options != NULL;
|
bool fakechain = test_options != NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue