Changing add stake operation - #3196
Open
ii-cruz wants to merge 2 commits into
Open
Conversation
ii-cruz
force-pushed
the
iicruz/fix-staker-dos
branch
from
January 7, 2025 14:06
e62eccb to
94256d9
Compare
paberr
approved these changes
Mar 30, 2025
Member
|
When |
Member
|
It doesn't reset it. Also, while discussing with @ii-cruz , one thing that is missing is a version gate for the upgrade. |
ii-cruz
force-pushed
the
iicruz/fix-staker-dos
branch
from
August 1, 2025 18:16
94256d9 to
bfb490c
Compare
ii-cruz
force-pushed
the
iicruz/fix-staker-dos
branch
9 times, most recently
from
August 22, 2025 14:23
9d0d70d to
91342a2
Compare
ii-cruz
marked this pull request as ready for review
August 22, 2025 16:15
ii-cruz
force-pushed
the
iicruz/fix-staker-dos
branch
from
August 22, 2025 16:16
91342a2 to
2573ee9
Compare
ii-cruz
force-pushed
the
iicruz/fix-staker-dos
branch
from
August 25, 2025 14:19
2573ee9 to
8ec152e
Compare
ii-cruz
force-pushed
the
iicruz/fix-staker-dos
branch
5 times, most recently
from
September 1, 2025 15:47
1b0174e to
f480b1e
Compare
ii-cruz
force-pushed
the
iicruz/fix-staker-dos
branch
10 times, most recently
from
June 12, 2026 09:52
056e6be to
85e391b
Compare
ii-cruz
changed the base branch from
albatross
to
iicruz/upgrade-mechanim-tx-verification
June 13, 2026 07:32
ii-cruz
force-pushed
the
iicruz/upgrade-mechanim-tx-verification
branch
8 times, most recently
from
June 17, 2026 15:31
629f40d to
7b3521e
Compare
ii-cruz
force-pushed
the
iicruz/fix-staker-dos
branch
2 times, most recently
from
June 17, 2026 17:45
b290e0f to
ba1f015
Compare
ii-cruz
force-pushed
the
iicruz/upgrade-mechanim-tx-verification
branch
2 times, most recently
from
June 18, 2026 15:41
597b5e2 to
ed06e3b
Compare
3 tasks
paberr
requested changes
Jul 16, 2026
paberr
left a comment
Member
There was a problem hiding this comment.
Some minor comments to be addressed. Overall looks good.
paberr
reviewed
Jul 24, 2026
paberr
left a comment
Member
There was a problem hiding this comment.
some minor comments from my side
paberr
requested changes
Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What's in this pull request?
add_stakeoperation. Add stake transactions have an intrinsic check for theirvalue => min_stakeand thus are rejected before they can break the invariant.add_stakeassumes that the staker wants to have auto-staking as long as there is an active stake. Once no active stake exists, the funds are credited directly to the inactive balance.This PR needs #3800 merged first
Pull request checklist
clippyandrustfmtwarnings.