Skip to content

Commit

Permalink
Revert "eth: check propagated block malformation on receiption (ether…
Browse files Browse the repository at this point in the history
…eum#20546)"

This reverts commit 1204fa9.
  • Loading branch information
wanwiset25 committed Aug 23, 2024
1 parent c88e7ab commit 29ea969
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions eth/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -810,14 +810,6 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
if err := msg.Decode(&request); err != nil {
return errResp(ErrDecode, "%v: %v", msg, err)
}
if hash := types.CalcUncleHash(request.Block.Uncles()); hash != request.Block.UncleHash() {
log.Warn("Propagated block has invalid uncles", "have", hash, "exp", request.Block.UncleHash())
break // TODO(karalabe): return error eventually, but wait a few releases
}
if hash := types.DeriveSha(request.Block.Transactions()); hash != request.Block.TxHash() {
log.Warn("Propagated block has invalid body", "have", hash, "exp", request.Block.TxHash())
break // TODO(karalabe): return error eventually, but wait a few releases
}
if err := request.sanityCheck(); err != nil {
return err
}
Expand Down

0 comments on commit 29ea969

Please sign in to comment.