Skip to content

Commit

Permalink
fix: skip unjustified block
Browse files Browse the repository at this point in the history
  • Loading branch information
alrxy committed Oct 13, 2024
1 parent 2794111 commit c899507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/symStaking/abci/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (h *ProposalHandler) PreBlocker() sdk.PreBlocker {
}

block, err := h.keeper.GetBlockByHash(ctx, blockHash)
if errors.Is(err, ethereum.NotFound) {
if errors.Is(err, ethereum.NotFound) || block.Hash().String() != blockHash {
h.logger.Warn("Preblock: Block not found")
err := h.keeper.CacheBlockHash(ctx, skipBlockHash)
return err
Expand Down

0 comments on commit c899507

Please sign in to comment.