Skip to content

Commit

Permalink
bugfix: WriteBlock before Inserting the local mined block
Browse files Browse the repository at this point in the history
  • Loading branch information
gameofpointers committed Sep 8, 2023
1 parent cd66a96 commit 655e31c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 655e31c

Please sign in to comment.