core: return the index of the block that failed when inserting a chain
This commit is contained in:
@ -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())
|
||||
}
|
||||
|
Reference in New Issue
Block a user