reuse pre-computed root for sig verification (#3048)

no point re-hashing arguments
This commit is contained in:
Jacek Sieka 2021-11-05 06:50:01 +01:00 committed by GitHub
parent 3bfb5ad367
commit 98668dbf16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ proc verify_block_signature(
if not verify_block_signature(
state.fork, state.genesis_validators_root, signed_block.message.slot,
signed_block.message, state.validators[proposer_index].pubkey,
signed_block.root, state.validators[proposer_index].pubkey,
signed_block.signature):
notice "Block: signature verification failed",
blck = shortLog(signedBlock)