Skip to content

Commit

Permalink
Merge pull request #1931 from lavanet/CNS-fix-credit-migrator
Browse files Browse the repository at this point in the history
fix: CNS-fix-credit-migrator
  • Loading branch information
Yaroms authored Feb 2, 2025
2 parents 1fe89e0 + 016830f commit a060fa1
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 a060fa1

Please sign in to comment.