Skip to content

Commit

Permalink
Skip uncle hash check for pre gingerbread headers
Browse files Browse the repository at this point in the history
Pre gingerbread headers do not have a valid uncle hash because they have
no notion of uncles.
  • Loading branch information
piersy committed Jun 21, 2024
1 parent 29e0c1f commit 2fd4979
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eth/downloader/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,8 @@ func (q *queue) DeliverBodies(id string, txLists [][]*types.Transaction, txListH
if txListHashes[index] != header.TxHash {
return errInvalidBody
}
if uncleListHashes[index] != header.UncleHash {
// Pre gingerbread headers do not have a valid uncle hash.
if !header.IsPreGingerbread() && uncleListHashes[index] != header.UncleHash {
return errInvalidBody
}
if header.WithdrawalsHash == nil {
Expand Down

0 comments on commit 2fd4979

Please sign in to comment.