Skip to content

Commit

Permalink
BugFix: changed GetBlockByHash to getBlock when trying to append
Browse files Browse the repository at this point in the history
  • Loading branch information
kiltsonfire committed May 9, 2023
1 parent 0863a3e commit 8579f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (c *Core) procAppendQueue() {
}

func (c *Core) serviceFutureBlock(block *types.Block) {
parentBlock := c.GetBlockByHash(block.ParentHash())
parentBlock := c.GetBlock(block.ParentHash(), block.NumberU64()-1)
if parentBlock != nil {
c.InsertChain([]*types.Block{block})
} else {
Expand Down

0 comments on commit 8579f25

Please sign in to comment.