diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-10-20 20:40:16 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-10-20 20:40:16 +0200 |
commit | 5c418c0522c11bd94467af2c32d851026eea6e0e (patch) | |
tree | d9fb5ee81e8584dc3cd25985f176b33e215041a0 /src | |
parent | Merge pull request #4521 (diff) | |
parent | blockchain: add check test options are given for fakechain mode (diff) | |
download | monero-5c418c0522c11bd94467af2c32d851026eea6e0e.tar.xz |
Merge pull request #4522
a39c0358 blockchain: add check test options are given for fakechain mode (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index fa23b6bd2..1ec2366e4 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -344,6 +344,9 @@ uint64_t Blockchain::get_current_blockchain_height() const bool Blockchain::init(BlockchainDB* db, const network_type nettype, bool offline, const cryptonote::test_options *test_options, difficulty_type fixed_difficulty) { LOG_PRINT_L3("Blockchain::" << __func__); + + CHECK_AND_ASSERT_MES(nettype != FAKECHAIN || test_options, false, "fake chain network type used without options"); + CRITICAL_REGION_LOCAL(m_tx_pool); CRITICAL_REGION_LOCAL1(m_blockchain_lock); |