mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
parent
1607419e38
commit
b6830db2d4
1 changed files with 2 additions and 1 deletions
|
@ -1373,7 +1373,8 @@ bool Blockchain::create_block_template(block& b, const crypto::hash *from_block,
|
||||||
// just as we compare it, we'll just use a slightly old template, but
|
// just as we compare it, we'll just use a slightly old template, but
|
||||||
// this would be the case anyway if we'd lock, and the change happened
|
// this would be the case anyway if we'd lock, and the change happened
|
||||||
// just after the block template was created
|
// just after the block template was created
|
||||||
if (!memcmp(&miner_address, &m_btc_address, sizeof(cryptonote::account_public_address)) && m_btc_nonce == ex_nonce && m_btc_pool_cookie == m_tx_pool.cookie()) {
|
if (!memcmp(&miner_address, &m_btc_address, sizeof(cryptonote::account_public_address)) && m_btc_nonce == ex_nonce
|
||||||
|
&& m_btc_pool_cookie == m_tx_pool.cookie() && m_btc.prev_id == get_tail_id()) {
|
||||||
MDEBUG("Using cached template");
|
MDEBUG("Using cached template");
|
||||||
m_btc.timestamp = time(NULL); // update timestamp unconditionally
|
m_btc.timestamp = time(NULL); // update timestamp unconditionally
|
||||||
b = m_btc;
|
b = m_btc;
|
||||||
|
|
Loading…
Reference in a new issue