diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-04 03:13:11 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-04 03:13:11 +0800 |
commit | 8e995b97ccc92098f5744dd7fc3d8e7e111ca09c (patch) | |
tree | 90e1ab7694f43608798ab770026b0debfed605d6 /miner/worker.go | |
parent | 40ff3cac3943ee672d818776fdd8235fc6684dca (diff) | |
download | dexon-8e995b97ccc92098f5744dd7fc3d8e7e111ca09c.tar dexon-8e995b97ccc92098f5744dd7fc3d8e7e111ca09c.tar.gz dexon-8e995b97ccc92098f5744dd7fc3d8e7e111ca09c.tar.bz2 dexon-8e995b97ccc92098f5744dd7fc3d8e7e111ca09c.tar.lz dexon-8e995b97ccc92098f5744dd7fc3d8e7e111ca09c.tar.xz dexon-8e995b97ccc92098f5744dd7fc3d8e7e111ca09c.tar.zst dexon-8e995b97ccc92098f5744dd7fc3d8e7e111ca09c.zip |
Fixes and debug added
Diffstat (limited to 'miner/worker.go')
-rw-r--r-- | miner/worker.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miner/worker.go b/miner/worker.go index 774ef9a7e..012353fa1 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -151,10 +151,10 @@ func (self *worker) wait() { self.current.block.Header().Nonce = work.Nonce self.current.block.Header().MixDigest = work.MixDigest self.current.block.Header().SeedHash = work.SeedHash - fmt.Println(self.current.block) if err := self.chain.InsertChain(types.Blocks{self.current.block}); err == nil { self.mux.Post(core.NewMinedBlockEvent{self.current.block}) + fmt.Println("GOOD BLOCK", self.current.block) } else { self.commitNewWork() } |