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,7 +167,6 @@ 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.
@ -177,7 +176,6 @@ func (p *Proposer) run(done <-chan struct{}, client pb.ProposerServiceClient) {
SlotNumber: latestBeaconBlock.GetSlotNumber() + 1,
RandaoReveal: []byte{},
AttestationBitmask: bitmask,
AttestationAggregateSig: agSig,
Timestamp: ptypes.TimestampNow(),
}
res, err := client.ProposeBlock(p.ctx, req)