consensus/misc: update

This commit is contained in:
Felix Lange 2025-07-18 13:42:38 +02:00
parent d031689977
commit 3e675b18f0

View file

@ -60,7 +60,7 @@ func VerifyDAOHeaderExtraData(config *params.Config2, header *types.Header) erro
} }
// Depending on whether we support or oppose the fork, validate the extra-data contents // Depending on whether we support or oppose the fork, validate the extra-data contents
if params.Get[params.DAOForkSupport](config) { if params.DAOForkSupport.Get(config) {
if !bytes.Equal(header.Extra, params.DAOForkBlockExtra) { if !bytes.Equal(header.Extra, params.DAOForkBlockExtra) {
return ErrBadProDAOExtra return ErrBadProDAOExtra
} }