mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
default timestamp bump 1 sec
This commit is contained in:
parent
c0d5dfb011
commit
e3cd999230
1 changed files with 1 additions and 1 deletions
|
|
@ -344,7 +344,7 @@ func (sim *simulator) makeHeaders(blocks []simBlock) ([]*types.Header, error) {
|
||||||
}
|
}
|
||||||
overrides := block.BlockOverrides
|
overrides := block.BlockOverrides
|
||||||
if overrides.Time == nil {
|
if overrides.Time == nil {
|
||||||
t := prevTimestamp + 12
|
t := prevTimestamp + 1
|
||||||
overrides.Time = (*hexutil.Uint64)(&t)
|
overrides.Time = (*hexutil.Uint64)(&t)
|
||||||
} else if time := (*uint64)(overrides.Time); *time <= prevTimestamp {
|
} else if time := (*uint64)(overrides.Time); *time <= prevTimestamp {
|
||||||
return nil, &invalidBlockTimestampError{fmt.Sprintf("block timestamps must be in order: %d <= %d", *time, prevTimestamp)}
|
return nil, &invalidBlockTimestampError{fmt.Sprintf("block timestamps must be in order: %d <= %d", *time, prevTimestamp)}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue