Propagate blocks again after we process it in pending blocks queue (#4714)

* propagate blocks again after we process it in pending blocks queue
* Merge refs/heads/master into reprop-block
This commit is contained in:
Preston Van Loon
2020-02-01 18:22:59 -08:00
committed by GitHub
parent f77049ae74
commit 962be9b4f8

View File

@@ -100,6 +100,11 @@ func (r *Service) processPendingBlocks(ctx context.Context) error {
traceutil.AnnotateError(span, err)
}
// Broadcasting the block again once a node is able to process it.
if err := r.p2p.Broadcast(ctx, b); err != nil {
log.WithError(err).Error("Failed to broadcast block")
}
blkRoot, err := ssz.HashTreeRoot(b.Block)
if err != nil {
traceutil.AnnotateError(span, err)