Skip to content

Commit

Permalink
fix rollback cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
danwt committed Jan 9, 2025
1 parent e562738 commit ccc4efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/commands/rollback.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func RollbackCmd(appCreator types.AppCreator) *cobra.Command {
return fmt.Errorf("load block header: %w", err)
}
// rollback dymint state according to the app
if err := blockManager.UpdateStateFromApp(block.Header.Hash()); err != nil {
if err := blockManager.UpdateStateFromApp(block); err != nil {
return fmt.Errorf("updating dymint from app state: %w", err)
}
fmt.Printf("RollApp state moved back to height %d successfully.\n", heightInt)
Expand Down

0 comments on commit ccc4efa

Please sign in to comment.