Update specs/lightclient/sync-protocol.md

Co-authored-by: Alex Stokes <r.alex.stokes@gmail.com>
This commit is contained in:
vbuterin 2020-11-17 10:45:02 +08:00 committed by GitHub
parent 4df3547edf
commit f9e9d7cabf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ def validate_update(memory: LightClientMemory, update: LightClientUpdate) -> boo
# Verify signature
active_pubkeys = [p for (bit, p) in zip(update.aggregation_bits, committee.pubkeys) if bit]
domain = compute_domain(DOMAIN_SYNC_COMMITTEE, memory.version)
domain = compute_domain(DOMAIN_SYNC_COMMITTEE, memory.fork_version)
signing_root = compute_signing_root(update.header, domain)
assert bls.FastAggregateVerify(pubkeys, signing_root, update.signature)