mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Avoid repeated (de)serialization when syncing
This commit is contained in:
parent
e4b049da05
commit
3bbc366147
1 changed files with 1 additions and 2 deletions
|
@ -3706,8 +3706,7 @@ leave:
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
uint64_t long_term_block_weight = get_next_long_term_block_weight(block_weight);
|
uint64_t long_term_block_weight = get_next_long_term_block_weight(block_weight);
|
||||||
cryptonote::blobdata bd = cryptonote::block_to_blob(bl);
|
new_height = m_db->add_block(std::make_pair(std::move(bl), cryptonote::block_to_blob(bl)), block_weight, long_term_block_weight, cumulative_difficulty, already_generated_coins, txs);
|
||||||
new_height = m_db->add_block(std::make_pair(std::move(bl), std::move(bd)), block_weight, long_term_block_weight, cumulative_difficulty, already_generated_coins, txs);
|
|
||||||
}
|
}
|
||||||
catch (const KEY_IMAGE_EXISTS& e)
|
catch (const KEY_IMAGE_EXISTS& e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue