mirror of
https://github.com/status-im/op-geth.git
synced 2025-02-05 03:13:34 +00:00
check for nil block (tmp).
@zelig this needs to be addressed in the block pool.
This commit is contained in:
parent
a0e44e3281
commit
218bfeb60e
@ -440,6 +440,9 @@ func (self *ChainManager) InsertChain(chain types.Blocks) error {
|
|||||||
var queue = make([]interface{}, len(chain))
|
var queue = make([]interface{}, len(chain))
|
||||||
var queueEvent = queueEvent{queue: queue}
|
var queueEvent = queueEvent{queue: queue}
|
||||||
for i, block := range chain {
|
for i, block := range chain {
|
||||||
|
if block == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
// Call in to the block processor and check for errors. It's likely that if one block fails
|
// Call in to the block processor and check for errors. It's likely that if one block fails
|
||||||
// all others will fail too (unless a known block is returned).
|
// all others will fail too (unless a known block is returned).
|
||||||
td, logs, err := self.processor.Process(block)
|
td, logs, err := self.processor.Process(block)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user