From 655e31ce24b05865d905e8a9b234f5a83b06bae9 Mon Sep 17 00:00:00 2001 From: gop Date: Thu, 7 Sep 2023 22:20:52 -0500 Subject: [PATCH] bugfix: WriteBlock before Inserting the local mined block --- core/core.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/core.go b/core/core.go index 597d8a4606..8a0ad58404 100644 --- a/core/core.go +++ b/core/core.go @@ -360,10 +360,6 @@ func (c *Core) WriteBlock(block *types.Block) { nodeCtx := common.NodeLocation.Context() if order == nodeCtx { c.addToAppendQueue(block) - parentHeader := c.GetHeader(block.ParentHash(), block.NumberU64()-1) - if parentHeader != nil { - c.InsertChain([]*types.Block{block}) - } // If a dom block comes in and we havent appended it yet } else if order < nodeCtx && c.GetHeaderByHash(block.Hash()) == nil { if c.sl.domClient != nil {