mirror of
https://github.com/monero-project/monero.git
synced 2024-12-28 23:46:14 -05:00
blockchain: don't try to load an empty block hash set
If the blocks aren't being linked against a binary (such as one of the blockchain utilities), the symbol will not be NULL, but the size will be 0. This avoids a apurious warning about the data hash.
This commit is contained in:
parent
3835903650
commit
cfa2564a40
@ -4016,7 +4016,7 @@ void Blockchain::cancel()
|
||||
static const char expected_block_hashes_hash[] = "23d8a8c73de7b2383c72a016d9a6034e69d62dd48077d1c414e064ceab6daa94";
|
||||
void Blockchain::load_compiled_in_block_hashes()
|
||||
{
|
||||
if (m_fast_sync && get_blocks_dat_start(m_testnet) != nullptr)
|
||||
if (m_fast_sync && get_blocks_dat_start(m_testnet) != nullptr && get_blocks_dat_size(m_testnet) > 0)
|
||||
{
|
||||
MINFO("Loading precomputed blocks (" << get_blocks_dat_size(m_testnet) << " bytes)");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user