mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
default timestamp bump to 12
This commit is contained in:
parent
81e7fe13ea
commit
8698221fae
1 changed files with 1 additions and 1 deletions
|
|
@ -414,7 +414,7 @@ func makeHeaders(config *params.ChainConfig, blocks []simBlock, base *types.Head
|
||||||
prevNumber = overrides.Number.ToInt().Uint64()
|
prevNumber = overrides.Number.ToInt().Uint64()
|
||||||
|
|
||||||
if overrides.Time == nil {
|
if overrides.Time == nil {
|
||||||
t := prevTimestamp + 1
|
t := prevTimestamp + 12
|
||||||
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