1
0
Fork 0
forked from lthn/blockchain

fixed block timestamp setting

This commit is contained in:
sowle 2021-10-12 05:00:01 +03:00
parent 92e2b1851b
commit 832b7811b9
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -3531,6 +3531,7 @@ bool wallet2::build_minted_block(const currency::COMMAND_RPC_SCAN_POS::request&
keys_ptrs.push_back(&txtokey.key);
// set a real timestamp
b.timestamp = rsp.block_timestamp;
uint64_t current_timestamp = m_core_runtime_config.get_core_time();
set_block_datetime(current_timestamp, b);
WLT_LOG_MAGENTA("Applying actual timestamp: " << current_timestamp, LOG_LEVEL_0);