aboutsummaryrefslogtreecommitdiffstats
path: root/miner
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-29 20:00:24 +0800
committerobscuren <geffobscura@gmail.com>2015-04-29 20:00:24 +0800
commit735b029db95bf72c3105674c0f2b4f111e5ccdf5 (patch)
treed656426d54dbbdd2a187bf22e93ddc0ad9aaeece /miner
parent764e81bf12bc45b00cec7db216e72d6396cf0c13 (diff)
downloaddexon-735b029db95bf72c3105674c0f2b4f111e5ccdf5.tar
dexon-735b029db95bf72c3105674c0f2b4f111e5ccdf5.tar.gz
dexon-735b029db95bf72c3105674c0f2b4f111e5ccdf5.tar.bz2
dexon-735b029db95bf72c3105674c0f2b4f111e5ccdf5.tar.lz
dexon-735b029db95bf72c3105674c0f2b4f111e5ccdf5.tar.xz
dexon-735b029db95bf72c3105674c0f2b4f111e5ccdf5.tar.zst
dexon-735b029db95bf72c3105674c0f2b4f111e5ccdf5.zip
core: return the index of the block that failed when inserting a chain
Diffstat (limited to 'miner')
-rw-r--r--miner/worker.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/miner/worker.go b/miner/worker.go
index a38b8a5d4..87d17dfd6 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -184,7 +184,7 @@ func (self *worker) wait() {
continue
}
- if err := self.chain.InsertChain(types.Blocks{block}); err == nil {
+ if _, err := self.chain.InsertChain(types.Blocks{block}); err == nil {
for _, uncle := range block.Uncles() {
delete(self.possibleUncles, uncle.Hash())
}