mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-02 13:08:41 +00:00
internal/ethapi: fix reject equal-timestamp
This commit is contained in:
parent
d4027f3d46
commit
1d402a3ced
1 changed files with 1 additions and 1 deletions
|
|
@ -513,7 +513,7 @@ func (sim *simulator) sanitizeChain(blocks []simBlock) ([]simBlock, error) {
|
||||||
block.BlockOverrides.Time = (*hexutil.Uint64)(&t)
|
block.BlockOverrides.Time = (*hexutil.Uint64)(&t)
|
||||||
} else {
|
} else {
|
||||||
t = uint64(*block.BlockOverrides.Time)
|
t = uint64(*block.BlockOverrides.Time)
|
||||||
if t <= prevTimestamp {
|
if t < prevTimestamp {
|
||||||
return nil, &invalidBlockTimestampError{fmt.Sprintf("block timestamps must be in order: %d <= %d", t, prevTimestamp)}
|
return nil, &invalidBlockTimestampError{fmt.Sprintf("block timestamps must be in order: %d <= %d", t, prevTimestamp)}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue