Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write back account changes after tracking delegation/undelegation for vesting accounts #8865
Write back account changes after tracking delegation/undelegation for vesting accounts #8865
Changes from 56 commits
a77b0c3
af5b275
58c1b72
6cfba52
9357165
bbe8232
d4a4640
a58c500
6e5d442
c974a2e
fcb93b3
3f979a8
bcc5198
313dc6d
c7d5798
0bbbc0a
520a94a
a9501d3
aaa7a9c
c3fdb8a
17e5c5a
f20a862
61ea15a
204db7a
6920bb9
e533951
0f03346
c0cb1d2
8d2cc6c
80335ad
9a1c74a
93b2ec9
c10b189
b82d06f
3b70dbc
d99c22e
327277d
e8f906b
2b7e14e
b40333f
3c6489d
60c41cc
d9f55cd
fef2d00
bfc1860
08926b1
c44fe38
5fdda3d
f6a602b
0b946d6
f928380
289e4c6
5d9d4f9
226ca8c
85b79b2
f342589
34b7961
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to include unbonding delegations.
DelegatorDelegations
returns items stored with theGetDelegationsKey
prefixcosmos-sdk/x/staking/keeper/grpc_query.go
Line 271 in 863d7d0
An
Undelegate
message willUnbond
which subtracts from or deletes an entry under that same prefixcosmos-sdk/x/staking/keeper/delegation.go
Line 112 in 863d7d0
It then creates an unbonding entry
cosmos-sdk/x/staking/keeper/delegation.go
Lines 748 to 749 in 863d7d0
When the unbonding is complete, the originally problematic method in bank keeper is called
cosmos-sdk/x/staking/keeper/delegation.go
Line 782 in 863d7d0
which eventually calls
TrackUndelegation
cosmos-sdk/x/bank/keeper/keeper.go
Line 447 in 863d7d0
So, if this doesn't look at unbonding delegations, there would be a situation where
TrackUndelegation
is called for which there was no correspondingTrackDelegation
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was just about to push support for unbonding delegations!
I'll request review from you as soon as I'm done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seams this is still not done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been taken into account already in fef2d00.