Merge pull request #2466 from terencechain/patch-123

Altair: missing `block_root` in `SyncCommitteeSignature`
This commit is contained in:
Danny Ryan 2021-06-02 16:09:13 -06:00 committed by GitHub
commit b3f2635ce7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -282,7 +282,12 @@ def get_sync_committee_signature(state: BeaconState,
signing_root = compute_signing_root(block_root, domain) signing_root = compute_signing_root(block_root, domain)
signature = bls.Sign(privkey, signing_root) signature = bls.Sign(privkey, signing_root)
return SyncCommitteeSignature(slot=state.slot, validator_index=validator_index, signature=signature) return SyncCommitteeSignature(
slot=state.slot,
beacon_block_root=block_root,
validator_index=validator_index,
signature=signature,
)
``` ```
##### Broadcast sync committee signature ##### Broadcast sync committee signature