diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-04 17:49:56 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-04 17:49:56 +0800 |
commit | 84a4f761f332b4aecc36c748bc4c9a4ce1c114e2 (patch) | |
tree | 5966338284ded703d77b4dba66b9876f64202963 /core/chain_makers.go | |
parent | d4d505c868fcd0f692ec3573bd6cfcb1c5230fe2 (diff) | |
download | dexon-84a4f761f332b4aecc36c748bc4c9a4ce1c114e2.tar.gz dexon-84a4f761f332b4aecc36c748bc4c9a4ce1c114e2.tar.zst dexon-84a4f761f332b4aecc36c748bc4c9a4ce1c114e2.zip |
uncle validation
Diffstat (limited to 'core/chain_makers.go')
-rw-r--r-- | core/chain_makers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_makers.go b/core/chain_makers.go index 3248975e1..fad9ac97b 100644 --- a/core/chain_makers.go +++ b/core/chain_makers.go @@ -61,7 +61,7 @@ func newBlockFromParent(addr []byte, parent *types.Block) *types.Block { block.SetReceipts(nil) header := block.Header() - header.Difficulty = CalcDifficulty(block, parent) + header.Difficulty = CalcDifficulty(block.Header(), parent.Header()) header.Number = new(big.Int).Add(parent.Header().Number, ethutil.Big1) header.Time = parent.Header().Time + 10 header.GasLimit = CalcGasLimit(parent, block) |