Skip to content

Commit

Permalink
removes err checks
Browse files Browse the repository at this point in the history
  • Loading branch information
danwt committed May 16, 2024
1 parent ca3bb46 commit a58ab2a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions block/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ func (m *Manager) applyBlock(block *types.Block, commit *types.Commit, blockMeta
// Dymint ignores any setValidator responses from the app, as it is manages the validator set based on the settlement consensus
// TODO: this will be changed when supporting multiple sequencers from the hub
validators := m.State.NextValidators.Copy()
if err != nil {
return fmt.Errorf("update state from responses: %w", err)
}

dbBatch, err = m.Store.SaveValidators(block.Header.Height, validators, dbBatch)
if err != nil {
Expand Down
1 change: 0 additions & 1 deletion block/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ func TestApplyBlock(t *testing.T) {
// Dymint ignores any setValidator responses from the app, as it is manages the validator set based on the settlement consensus
// TODO: this will be changed when supporting multiple sequencers from the hub
vals := state.NextValidators.Copy()
require.NoError(err)
_, _, err = executor.Commit(state, block, resp)
require.NoError(err)
executor.UpdateStateAfterCommit(state, resp, appHash, block.Header.Height, vals)
Expand Down

0 comments on commit a58ab2a

Please sign in to comment.