Skip to content

Commit bc6fe0f

Browse files
committed
Skip uncle hash check for pre gingerbread headers
Pre gingerbread headers do not have a valid uncle hash because they have no notion of uncles.
1 parent cf391de commit bc6fe0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eth/downloader/queue.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,8 @@ func (q *queue) DeliverBodies(id string, txLists [][]*types.Transaction, txListH
782782
if txListHashes[index] != header.TxHash {
783783
return errInvalidBody
784784
}
785-
if uncleListHashes[index] != header.UncleHash {
785+
// Pre gingerbread headers do not have a valid uncle hash.
786+
if !header.IsPreGingerbread() && uncleListHashes[index] != header.UncleHash {
786787
return errInvalidBody
787788
}
788789
if header.WithdrawalsHash == nil {

0 commit comments

Comments
 (0)