Merge pull request #9851

70fe289d8 Improve move/copy/default constructor semantics for tx and block (Lee *!* Clagett)
This commit is contained in:
tobtoht
2025-04-23 16:14:50 +00:00
4 changed files with 118 additions and 49 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ namespace cryptonote
extra_nonce = cryptonote::blobdata((const char*)&hash, 4);
if(!add_extra_nonce_to_tx_extra(new_block.miner_tx.extra, extra_nonce))
return false;
info.previous_block = std::move(info.block);
info.previous_block = info.block;
info.block = std::move(new_block);
hashing_blob = get_block_hashing_blob(info.block);
info.previous_hashing_blob = info.hashing_blob;