aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/block_chain.go
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-03-20 18:20:29 +0800
committerMaran <maran.hidskes@gmail.com>2014-03-20 18:20:29 +0800
commitae837c4719855384921fcaadb1a575942dc9833d (patch)
tree3981f671c02ac6874c849cab7186cecf80d24e2f /ethchain/block_chain.go
parent2be2fc79740d942f9690268352465d117930f081 (diff)
downloaddexon-ae837c4719855384921fcaadb1a575942dc9833d.tar
dexon-ae837c4719855384921fcaadb1a575942dc9833d.tar.gz
dexon-ae837c4719855384921fcaadb1a575942dc9833d.tar.bz2
dexon-ae837c4719855384921fcaadb1a575942dc9833d.tar.lz
dexon-ae837c4719855384921fcaadb1a575942dc9833d.tar.xz
dexon-ae837c4719855384921fcaadb1a575942dc9833d.tar.zst
dexon-ae837c4719855384921fcaadb1a575942dc9833d.zip
More mining rework
Diffstat (limited to 'ethchain/block_chain.go')
-rw-r--r--ethchain/block_chain.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/ethchain/block_chain.go b/ethchain/block_chain.go
index 93970a2c5..90ad4516a 100644
--- a/ethchain/block_chain.go
+++ b/ethchain/block_chain.go
@@ -44,7 +44,6 @@ func (bc *BlockChain) NewBlock(coinbase []byte, txs []*Transaction) *Block {
hash = bc.LastBlockHash
lastBlockTime = bc.CurrentBlock.Time
}
-
block := CreateBlock(
root,
hash,
@@ -181,8 +180,8 @@ func (bc *BlockChain) SetTotalDifficulty(td *big.Int) {
// Add a block to the chain and record addition information
func (bc *BlockChain) Add(block *Block) {
bc.writeBlockInfo(block)
-
// Prepare the genesis block
+
bc.CurrentBlock = block
bc.LastBlockHash = block.Hash()