-
Notifications
You must be signed in to change notification settings - Fork 221
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
Redelegate without unbonding #2440
Redelegate without unbonding #2440
Conversation
# Conflicts: # execution_engine_testing/test_support/src/wasm_test_builder.rs
FYI, I had to unassign myself as the reviewer as I won't be able to do a proper review before the end of 1.5.0 development cycle. |
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.
There is one critical issue in process_unbond_requests()
which must be resolved.
I'd like to see tests for
- redelegate to an invalid validator
- redelegate to the same validator (should be a no-op resulting in no unbonding purse entry)
The PR also needs to include an entry to each of the EE and types changelogs.
execution_engine_testing/tests/src/test/system_contracts/auction/bids.rs
Outdated
Show resolved
Hide resolved
execution_engine_testing/tests/src/test/system_contracts/auction/bids.rs
Outdated
Show resolved
Hide resolved
execution_engine_testing/tests/src/test/system_contracts/auction/bids.rs
Show resolved
Hide resolved
# Conflicts: # execution_engine/src/core/engine_state/error.rs # resources/test/rpc_schema_hashing_V2.json
# Conflicts: # execution_engine/CHANGELOG.md # types/CHANGELOG.md
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 made a few further comments, but the main blocker has been resolved now thanks.
bors r+ |
Build failed: |
bors r+ |
Build failed: |
bors retry |
Build succeeded: |
@@ -13,6 +13,12 @@ All notable changes to this project will be documented in this file. The format | |||
|
|||
## [Unreleased] | |||
|
|||
### Changed | |||
* Extended `UnbondingPurses` to take a new field `new_validator` which represents the validator to whom tokens will be re-delegated. |
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.
You forgot to mention that we also changed:
- RPC API
- SSE data
- clients (in this PR only Rust client but the change forces the update to all the other SDKs)
@Fraser999 @darthsiroftardis were these tests included? |
2440: Redelegate without unbonding r=darthsiroftardis a=darthsiroftardis CHANGELOG: - Added a `new_validator` field to `UnbondingPurses` which allows redelegation without unbonding - Added a new struct `WithdrawPurse` to represent unbonding purses in current/live networks - Added a new `Key::Unbond` under which `UnbondingPurses` are written - Amended the upgrade logic to transform previous purses that are still be paid out into `UnbondingPurses` Closes casper-network#2345 Co-authored-by: Karan Dhareshwar <karan@casperlabs.io>
CHANGELOG:
new_validator
field toUnbondingPurses
which allows redelegation without unbondingWithdrawPurse
to represent unbonding purses in current/live networksKey::Unbond
under whichUnbondingPurses
are writtenUnbondingPurses
Closes #2345