aboutsummaryrefslogtreecommitdiffstats
path: root/miner/worker.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-03-16 23:50:29 +0800
committerzelig <viktor.tron@gmail.com>2015-03-16 23:50:29 +0800
commitb3e133dd159749a625c4b0245af293607ba12c8c (patch)
tree9ba8e8c4afe9168f5bc83219d402efb00387d616 /miner/worker.go
parent8139d444f8d8163251d1c96ef8034d186825ce32 (diff)
parent73af0302bed5076260ac935e452064aee423934d (diff)
downloadgo-tangerine-b3e133dd159749a625c4b0245af293607ba12c8c.tar
go-tangerine-b3e133dd159749a625c4b0245af293607ba12c8c.tar.gz
go-tangerine-b3e133dd159749a625c4b0245af293607ba12c8c.tar.bz2
go-tangerine-b3e133dd159749a625c4b0245af293607ba12c8c.tar.lz
go-tangerine-b3e133dd159749a625c4b0245af293607ba12c8c.tar.xz
go-tangerine-b3e133dd159749a625c4b0245af293607ba12c8c.tar.zst
go-tangerine-b3e133dd159749a625c4b0245af293607ba12c8c.zip
Merge branch 'frontier/js' into frontier/nodeadmin.js
Diffstat (limited to 'miner/worker.go')
-rw-r--r--miner/worker.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/miner/worker.go b/miner/worker.go
index 5c4a13698..10fc6f508 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -9,7 +9,7 @@ import (
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethutil"
+ "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/pow"
@@ -155,10 +155,10 @@ func (self *worker) wait() {
self.current.block.Header().MixDigest = work.MixDigest
jsonlogger.LogJson(&logger.EthMinerNewBlock{
- BlockHash: ethutil.Bytes2Hex(block.Hash()),
+ BlockHash: common.Bytes2Hex(block.Hash()),
BlockNumber: block.Number(),
- ChainHeadHash: ethutil.Bytes2Hex(block.ParentHeaderHash),
- BlockPrevHash: ethutil.Bytes2Hex(block.ParentHeaderHash),
+ ChainHeadHash: common.Bytes2Hex(block.ParentHeaderHash),
+ BlockPrevHash: common.Bytes2Hex(block.ParentHeaderHash),
})
if err := self.chain.InsertChain(types.Blocks{self.current.block}); err == nil {
@@ -221,7 +221,7 @@ gasLimit:
self.current.state.AddBalance(self.coinbase, core.BlockReward)
- self.current.state.Update(ethutil.Big0)
+ self.current.state.Update(common.Big0)
self.push()
}