Implement Proposer Attestation Check for Block Validity (#508)

This commit is contained in:
terence tsao
2018-09-15 07:51:17 -07:00
committed by GitHub
parent be11f2f103
commit ae84cfcfa2
31 changed files with 508 additions and 325 deletions

View File

@@ -89,7 +89,7 @@ func (a *Attester) run(done <-chan struct{}, client pb.AttesterServiceClient) {
latestBlockHash := blake2b.Sum512(data)
req := &pb.AttestRequest{
Attestation: &pbp2p.AttestationRecord{
Attestation: &pbp2p.AggregatedAttestation{
Slot: latestBeaconBlock.GetSlotNumber(),
ShardId: a.shardID,
ShardBlockHash: latestBlockHash[:],