1
0
Fork 0
forked from lthn/blockchain

ethash: more logs

This commit is contained in:
sowle 2019-08-30 03:57:45 +03:00
parent 33598c7c19
commit e278e8a792
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -149,6 +149,7 @@ epoch_context_full* create_epoch_context(
LOG_CUSTOM_WITH_CALLSTACK("CRITICAL: std::calloc(" << alloc_size << ") failed in create_epoch_context()", 0);
return nullptr; // Signal out-of-memory by returning null pointer.
}
LOG_CUSTOM("context for epoch " << epoch_number << " allocated, size: " << alloc_size << " bytes", 0);
hash512* const light_cache = reinterpret_cast<hash512*>(alloc_data + context_alloc_size);
const hash256 epoch_seed = calculate_epoch_seed(epoch_number);