Not Include Attestations for Proposer (#587)

This commit is contained in:
terence tsao 2018-09-28 09:18:25 -07:00 committed by Raul Jordan
parent d65e2a4157
commit a03baa8055

View File

@ -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 {