Skip to content

Commit

Permalink
eth: updated fetcher.go, fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusVanDerWijden committed Aug 27, 2019
1 parent 5c27338 commit bef16e1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions eth/fetcher/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -692,14 +692,13 @@ func (f *Fetcher) propabilisticCutThrough(peer string, block *types.Block) {
if err = f.verifyHeader(block.Header()); err != nil {
if err != consensus.ErrFutureBlock {
wasGood = false
goto END
}
} else {
// Then send
propBroadcastOutTimer.UpdateSince(block.ReceivedAt)
go f.broadcastBlock(block, true)
}
// Then send
propBroadcastOutTimer.UpdateSince(block.ReceivedAt)
wasGood = true
}
END:
if wasGood {
f.peers[peer] = f.peers[peer] + 1
} else {
Expand Down

0 comments on commit bef16e1

Please sign in to comment.