fix: compare headers' number in Big.Int rather than Uint64 (#2158)

This commit is contained in:
Roshan 2024-01-15 10:54:54 +08:00 committed by GitHub
parent e2e2ac750c
commit 7ade1d2a5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1430,7 +1430,7 @@ func (c *verifyDoubleSignEvidence) Run(input []byte) ([]byte, error) {
}
// basic check
if header1.Number.Uint64() != header2.Number.Uint64() {
if header1.Number.Cmp(header2.Number) != 0 {
return nil, ErrExecutionReverted
}
if header1.ParentHash != header2.ParentHash {