RPC/proposer: remove dup vs.deleteAttsInPool (#6911)

This commit is contained in:
terence tsao 2020-08-06 11:18:26 -07:00 committed by GitHub
parent dc0f2140b3
commit 5a216de6d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,10 +165,6 @@ func (vs *Server) ProposeBlock(ctx context.Context, blk *ethpb.SignedBeaconBlock
return nil, status.Errorf(codes.Internal, "Could not process beacon block: %v", err)
}
if err := vs.deleteAttsInPool(ctx, blk.Block.Body.Attestations); err != nil {
return nil, status.Errorf(codes.Internal, "Could not delete attestations in pool: %v", err)
}
return &ethpb.ProposeResponse{
BlockRoot: root[:],
}, nil