Skip to content

Commit

Permalink
remove failed tos in block
Browse files Browse the repository at this point in the history
  • Loading branch information
danwt committed Apr 15, 2024
1 parent a58bc9b commit 3b1a30e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions block/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (m *Manager) alignStoreWithApp(ctx context.Context, block *types.Block) (bo
// Validate incosistency in height wasn't caused by a crash and if so handle it.
proxyAppInfo, err := m.executor.GetAppInfo()
if err != nil {
return isRequired, errors.Wrap(err, "failed to get app info")
return isRequired, errors.Wrap(err, "get app info")
}
if uint64(proxyAppInfo.LastBlockHeight) != block.Header.Height {
return isRequired, nil
Expand All @@ -160,13 +160,13 @@ func (m *Manager) alignStoreWithApp(ctx context.Context, block *types.Block) (bo

resp, err := m.store.LoadBlockResponses(block.Header.Height)
if err != nil {
return isRequired, errors.Wrap(err, "failed to load block responses")
return isRequired, errors.Wrap(err, "load block responses")
}
copy(m.lastState.LastResultsHash[:], tmtypes.NewResults(resp.DeliverTxs).Hash())

_, err = m.store.UpdateState(m.lastState, nil)
if err != nil {
return isRequired, errors.Wrap(err, "failed to update state")
return isRequired, errors.Wrap(err, "update state")
}
m.store.SetHeight(block.Header.Height)
return isRequired, nil
Expand Down

0 comments on commit 3b1a30e

Please sign in to comment.