mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-11 04:00:05 +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.
|
// To prevent any unaccounted attestations from being added.
|
||||||
p.lock.Lock()
|
p.lock.Lock()
|
||||||
|
|
||||||
agSig := p.AggregateAllSignatures(p.pendingAttestation)
|
|
||||||
bitmask := p.GenerateBitmask(p.pendingAttestation)
|
bitmask := p.GenerateBitmask(p.pendingAttestation)
|
||||||
|
|
||||||
// TODO(#552): Implement real proposals with randao reveals and attestation fields.
|
// TODO(#552): Implement real proposals with randao reveals and attestation fields.
|
||||||
req := &pb.ProposeRequest{
|
req := &pb.ProposeRequest{
|
||||||
ParentHash: latestBlockHash[:],
|
ParentHash: latestBlockHash[:],
|
||||||
// TODO(#511): Fix to be the actual, timebased slot number instead.
|
// TODO(#511): Fix to be the actual, timebased slot number instead.
|
||||||
SlotNumber: latestBeaconBlock.GetSlotNumber() + 1,
|
SlotNumber: latestBeaconBlock.GetSlotNumber() + 1,
|
||||||
RandaoReveal: []byte{},
|
RandaoReveal: []byte{},
|
||||||
AttestationBitmask: bitmask,
|
AttestationBitmask: bitmask,
|
||||||
AttestationAggregateSig: agSig,
|
Timestamp: ptypes.TimestampNow(),
|
||||||
Timestamp: ptypes.TimestampNow(),
|
|
||||||
}
|
}
|
||||||
res, err := client.ProposeBlock(p.ctx, req)
|
res, err := client.ProposeBlock(p.ctx, req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user