cryptonote: block parsing + hash calculation speedup
This saves a duplicate serialization step
This commit is contained in:
@@ -1432,7 +1432,8 @@ namespace cryptonote
|
||||
block lb;
|
||||
if (!b)
|
||||
{
|
||||
if(!parse_and_validate_block_from_blob(block_blob, lb))
|
||||
crypto::hash block_hash;
|
||||
if(!parse_and_validate_block_from_blob(block_blob, lb, block_hash))
|
||||
{
|
||||
LOG_PRINT_L1("Failed to parse and validate new block");
|
||||
bvc.m_verifivation_failed = true;
|
||||
|
||||
Reference in New Issue
Block a user