Skip to content

Commit

Permalink
fix migrator 6To7 dualstaking
Browse files Browse the repository at this point in the history
  • Loading branch information
Yarom Swisa authored and Yarom Swisa committed Jan 30, 2025
1 parent c69025a commit eacf3c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/init_chain_commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,5 @@ if [[ "$1" != "--skip-providers" ]]; then
. ${__dir}/setup_providers.sh
echo "letting providers start and running health check"
sleep 10
lavap test health $HEALTH_FILE
# lavap test health $HEALTH_FILE
fi
2 changes: 1 addition & 1 deletion x/dualstaking/keeper/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (m Migrator) MigrateVersion5To6(ctx sdk.Context) error {
func (m Migrator) MigrateVersion6To7(ctx sdk.Context) error {
// set all delegations to have a timestamp of 30 days ago
allDelegations, err := m.keeper.GetAllDelegations(ctx)
if err != nil {
if err == nil {
for _, delegation := range allDelegations {
delegation.Timestamp = ctx.BlockTime().AddDate(0, 0, -30).UTC().Unix()
m.keeper.SetDelegation(ctx, delegation)
Expand Down

0 comments on commit eacf3c2

Please sign in to comment.