Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
alpe committed Jun 7, 2024
1 parent 5cab600 commit 647b220
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions x/simulation/simulate.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func SimulateFromSeed(

res, err := app.FinalizeBlock(finalizeBlockReq)
if err != nil {
return params, err
return params, fmt.Errorf("block finalization failed at height %d: %w", blockHeight, err)
}

ctx := app.NewContextLegacy(false, cmtproto.Header{
Expand Down Expand Up @@ -226,11 +226,9 @@ func SimulateFromSeed(
logWriter.AddEntry(EndBlockEntry(blockHeight))

if config.Commit {
_, err := app.Commit()
if err != nil {
return params, err
if _, err := app.Commit(); err != nil {
return params, fmt.Errorf("commit failed at height %d: %w", blockHeight, err)
}

}

if proposerAddress == nil {
Expand Down

0 comments on commit 647b220

Please sign in to comment.