aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_makers.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-04 17:49:56 +0800
committerobscuren <geffobscura@gmail.com>2015-03-04 17:49:56 +0800
commit84a4f761f332b4aecc36c748bc4c9a4ce1c114e2 (patch)
tree5966338284ded703d77b4dba66b9876f64202963 /core/chain_makers.go
parentd4d505c868fcd0f692ec3573bd6cfcb1c5230fe2 (diff)
downloadgo-tangerine-84a4f761f332b4aecc36c748bc4c9a4ce1c114e2.tar
go-tangerine-84a4f761f332b4aecc36c748bc4c9a4ce1c114e2.tar.gz
go-tangerine-84a4f761f332b4aecc36c748bc4c9a4ce1c114e2.tar.bz2
go-tangerine-84a4f761f332b4aecc36c748bc4c9a4ce1c114e2.tar.lz
go-tangerine-84a4f761f332b4aecc36c748bc4c9a4ce1c114e2.tar.xz
go-tangerine-84a4f761f332b4aecc36c748bc4c9a4ce1c114e2.tar.zst
go-tangerine-84a4f761f332b4aecc36c748bc4c9a4ce1c114e2.zip
uncle validation
Diffstat (limited to 'core/chain_makers.go')
-rw-r--r--core/chain_makers.go2
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)