Skip to content

Commit

Permalink
Merge pull request #605 from lochjin/dev1.2
Browse files Browse the repository at this point in the history
BUG:panic about restore block state
  • Loading branch information
dindinw authored Feb 3, 2024
2 parents 100d08d + 4f63634 commit caf3d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meerevm/meer/meerchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func (b *MeerChain) prepareEnvironment(state model.BlockState) (*types.Header, e
}
log.Info("Try to restore block state for EVM", "evm.hash", list[i].GetEVMHash().String(), "evm.number", list[i].GetEVMNumber(), "state.order", list[i].GetOrder())
block := b.chain.Ether().BlockChain().GetBlock(list[i].GetEVMHash(), list[i].GetEVMNumber())
if block != nil {
if block == nil {
log.Info("Try to rebuild evm block", "state.order", list[i].GetOrder())
sb, err := b.consensus.BlockChain().BlockByOrder(list[i].GetOrder())
if err != nil {
Expand Down

0 comments on commit caf3d29

Please sign in to comment.