Skip to content

Commit

Permalink
chore: update migration to migrate 10000 items per block
Browse files Browse the repository at this point in the history
  • Loading branch information
PaddyMc committed Aug 29, 2024
1 parent a8ff26f commit 0c4ee8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/staking/keeper/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ func (k *Keeper) EndBlocker(ctx context.Context) ([]abci.ValidatorUpdate, error)
}
}()

// Only migrate 2000 items per block to make sure block times don't grow too much
k.MigrateDelegationsByValidatorIndex(sdk.UnwrapSDKContext(ctx), 2000)
// Only migrate 10000 items per block to make the migration as fast as possible
k.MigrateDelegationsByValidatorIndex(sdk.UnwrapSDKContext(ctx), 10000)

Check warning

Code scanning / gosec

Errors unhandled. Warning

Errors unhandled.
}()

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods Warning

path flow from Begin/EndBlock to a panic call
path flow from Begin/EndBlock to a panic call
path flow from Begin/EndBlock to a panic call
path flow from Begin/EndBlock to a panic call
path flow from Begin/EndBlock to a panic call

return k.BlockValidatorUpdates(ctx)
Expand Down

0 comments on commit 0c4ee8d

Please sign in to comment.