Merge pull request #2466 from terencechain/patch-123
Altair: missing `block_root` in `SyncCommitteeSignature`
This commit is contained in:
commit
b3f2635ce7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue