mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 03:51:29 +00:00
Not Include Attestations for Proposer (#587)
This commit is contained in:
parent
d65e2a4157
commit
a03baa8055
@ -167,18 +167,16 @@ func (p *Proposer) run(done <-chan struct{}, client pb.ProposerServiceClient) {
|
||||
// To prevent any unaccounted attestations from being added.
|
||||
p.lock.Lock()
|
||||
|
||||
agSig := p.AggregateAllSignatures(p.pendingAttestation)
|
||||
bitmask := p.GenerateBitmask(p.pendingAttestation)
|
||||
|
||||
// TODO(#552): Implement real proposals with randao reveals and attestation fields.
|
||||
req := &pb.ProposeRequest{
|
||||
ParentHash: latestBlockHash[:],
|
||||
// TODO(#511): Fix to be the actual, timebased slot number instead.
|
||||
SlotNumber: latestBeaconBlock.GetSlotNumber() + 1,
|
||||
RandaoReveal: []byte{},
|
||||
AttestationBitmask: bitmask,
|
||||
AttestationAggregateSig: agSig,
|
||||
Timestamp: ptypes.TimestampNow(),
|
||||
SlotNumber: latestBeaconBlock.GetSlotNumber() + 1,
|
||||
RandaoReveal: []byte{},
|
||||
AttestationBitmask: bitmask,
|
||||
Timestamp: ptypes.TimestampNow(),
|
||||
}
|
||||
res, err := client.ProposeBlock(p.ctx, req)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user