Include block_root in SyncCommitteeSignature

This commit is contained in:
terence tsao 2021-06-02 14:41:24 -07:00 committed by GitHub
parent d598c09876
commit 65f48178b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ 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