diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2017-05-13 03:35:45 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2017-05-18 15:05:58 +0800 |
commit | a5f6a1cb7c5e5dde130391e9bed7625ef9ff36b5 (patch) | |
tree | 251d24c632d746ad32af6874fe115b1e86ae9b03 /core/chain_makers.go | |
parent | e6aff513dbe04b105db1ae44501c1732a7ab7af3 (diff) | |
download | dexon-a5f6a1cb7c5e5dde130391e9bed7625ef9ff36b5.tar dexon-a5f6a1cb7c5e5dde130391e9bed7625ef9ff36b5.tar.gz dexon-a5f6a1cb7c5e5dde130391e9bed7625ef9ff36b5.tar.bz2 dexon-a5f6a1cb7c5e5dde130391e9bed7625ef9ff36b5.tar.lz dexon-a5f6a1cb7c5e5dde130391e9bed7625ef9ff36b5.tar.xz dexon-a5f6a1cb7c5e5dde130391e9bed7625ef9ff36b5.tar.zst dexon-a5f6a1cb7c5e5dde130391e9bed7625ef9ff36b5.zip |
consensus, core, core/vm, parems: review fixes
Diffstat (limited to 'core/chain_makers.go')
-rw-r--r-- | core/chain_makers.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/core/chain_makers.go b/core/chain_makers.go index 967744282..c81239607 100644 --- a/core/chain_makers.go +++ b/core/chain_makers.go @@ -209,9 +209,6 @@ func makeHeader(config *params.ChainConfig, parent *types.Block, state *state.St } else { time = new(big.Int).Add(parent.Time(), big.NewInt(10)) // block time is fixed at 10 seconds } - parentHeader := parent.Header() - // adjust the parent time - parentHeader.Time = new(big.Int).Sub(time, big.NewInt(10)) return &types.Header{ Root: state.IntermediateRoot(config.IsEIP158(parent.Number())), |