aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_makers.go
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 /core/chain_makers.go
parent764e81bf12bc45b00cec7db216e72d6396cf0c13 (diff)
downloadgo-tangerine-735b029db95bf72c3105674c0f2b4f111e5ccdf5.tar.gz
go-tangerine-735b029db95bf72c3105674c0f2b4f111e5ccdf5.tar.zst
go-tangerine-735b029db95bf72c3105674c0f2b4f111e5ccdf5.zip
core: return the index of the block that failed when inserting a chain
Diffstat (limited to 'core/chain_makers.go')
-rw-r--r--core/chain_makers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_makers.go b/core/chain_makers.go
index 4512a5493..73c2205f4 100644
--- a/core/chain_makers.go
+++ b/core/chain_makers.go
@@ -141,6 +141,6 @@ func newCanonical(n int, db common.Database) (*BlockProcessor, error) {
return bman, nil
}
lchain := makeChain(bman, parent, n, db, CanonicalSeed)
- err := bman.bc.InsertChain(lchain)
+ _, err := bman.bc.InsertChain(lchain)
return bman, err
}