Skip to content

Commit

Permalink
chore: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Sep 30, 2024
1 parent 691fed3 commit ef505e4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions x/application/keeper/transfer_applications.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,13 @@ func MergeAppDelegatees(srcApp, dstApp *types.Application) {
//
// It is exported for testing purposes.
func MergeAppPendingUndelegations(srcApp, dstApp *types.Application) {
// Build a map from all gateway addresses which have pending undelegations
// to their respective undelegation session end heights. If the source and destination
// Build a map from all gateway addresses which have pending undelegations to
// their respective undelegation session end heights. If the source and destination
// applications both contain pending undelegations from the same gateway address, the
// source pending undelegation is ignored. E.g., app1 has a pending undelegation at
// height 10 from gateway1 and app2 has pending undelegation from gateway1 at height 20;
// only one pending undelegation from gateway1 should be present in the merged result.
// source pending undelegation is ignored. E.g., srcApp has a pending undelegation at
// height 10 from gateway1 and dstApp has pending undelegation from gateway1 atheight
// 20; only one pending undelegation from gateway1 should be present in the merged
// result, at height 20.
undelegationsUnionAddrToHeightMap := make(map[string]uint64)

for srcHeight, srcUndelegetingGatewaysList := range srcApp.PendingUndelegations {
Expand Down

0 comments on commit ef505e4

Please sign in to comment.