aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_makers.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-20 18:01:20 +0800
committerobscuren <geffobscura@gmail.com>2015-04-20 18:01:20 +0800
commit97b0c4b6978d7fd972f3b0991acca1227e4e83dc (patch)
tree8c6f35d6e82fa809a06694635c331bb8103b8907 /core/chain_makers.go
parentfa729a0c55aa4b00c2ac33d0fcee8acabed2f737 (diff)
downloadgo-tangerine-97b0c4b6978d7fd972f3b0991acca1227e4e83dc.tar
go-tangerine-97b0c4b6978d7fd972f3b0991acca1227e4e83dc.tar.gz
go-tangerine-97b0c4b6978d7fd972f3b0991acca1227e4e83dc.tar.bz2
go-tangerine-97b0c4b6978d7fd972f3b0991acca1227e4e83dc.tar.lz
go-tangerine-97b0c4b6978d7fd972f3b0991acca1227e4e83dc.tar.xz
go-tangerine-97b0c4b6978d7fd972f3b0991acca1227e4e83dc.tar.zst
go-tangerine-97b0c4b6978d7fd972f3b0991acca1227e4e83dc.zip
core: moved TD calculation from proc to chain
Diffstat (limited to 'core/chain_makers.go')
-rw-r--r--core/chain_makers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/chain_makers.go b/core/chain_makers.go
index 810741820..250671ef8 100644
--- a/core/chain_makers.go
+++ b/core/chain_makers.go
@@ -93,12 +93,12 @@ func makeChain(bman *BlockProcessor, parent *types.Block, max int, db common.Dat
blocks := make(types.Blocks, max)
for i := 0; i < max; i++ {
block := makeBlock(bman, parent, i, db, seed)
- td, _, err := bman.processWithParent(block, parent)
+ _, err := bman.processWithParent(block, parent)
if err != nil {
fmt.Println("process with parent failed", err)
panic(err)
}
- block.Td = td
+ block.Td = CalculateTD(block, parent)
blocks[i] = block
parent = block
}