This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Stash/controller model for staking #1782
Merged
Merged
Changes from 19 commits
Commits
Show all changes
85 commits
Select commit
Hold shift + click to select a range
e89dff9
First steps to stash/controller separation
gavofyork 8e9c2d5
Merge remote-tracking branch 'origin/master' into gav-new-staking
gavofyork 29d1b20
More drafting
gavofyork ac5d897
More drafting
gavofyork bfc089f
Finish draft.
gavofyork fe19f73
Optimisation
gavofyork 24cedfb
Remove accidental commit
gavofyork 0876c86
Make it build.
gavofyork c9f643f
Fix linked map for traits.
tomusdrw 9190f7d
Fix Option<_> variant.
tomusdrw 4b5274e
Merge branch 'master' into td-fixlinked
tomusdrw 5354a2e
Improve naming a tad
tomusdrw 00ba07e
Rebuild runtime
tomusdrw 78bcf1a
Merge remote-tracking branch 'origin/master' into gav-new-staking2
gavofyork 5ec3741
Merge remote-tracking branch 'origin/td-fixlinked' into gav-new-staking2
gavofyork ca18c79
Builds!
gavofyork a24dd8a
First test.
gavofyork 15a3100
Bump RT version
gavofyork bd0a3de
Minor fix
gavofyork 68f5405
Update Mock
shawntabrizi 001a665
adds the correct reward testcase (+staking eras which was already ok)
kianenigma 7042842
fixes the basic staking testcase to work properly (along with a small…
kianenigma 75bf9d7
New logic to avoid controller transferring stash.
gavofyork f4ba1d6
Fix some build issues.
gavofyork a008ee1
Merge branch 'gav-new-staking' of github.com:paritytech/substrate int…
gavofyork 27ad50e
adding some comments to tests
shawntabrizi 93d0eb0
Merge branch 'gav-new-staking' of https://github.com/paritytech/subst…
shawntabrizi 9f7ba25
Merge remote-tracking branch 'origin/master' into gav-new-staking
gavofyork b755466
Merge branch 'gav-new-staking' of github.com:paritytech/substrate int…
gavofyork 50a212c
Fix impls.
gavofyork 1eb43f7
adds a few more lines to explain the test case
kianenigma 6eaddd1
Merge branch 'gav-new-staking' of github.com:paritytech/substrate int…
kianenigma e8661b2
More fixes.
gavofyork 7284530
Merge branch 'gav-new-staking' of github.com:paritytech/substrate int…
kianenigma 7e9d469
gets the basic test up and running again
kianenigma 31bed92
Fix rest of build
gavofyork cadce5e
Merge branch 'gav-new-staking' of github.com:paritytech/substrate int…
gavofyork 37adc08
Rebuild wasm
gavofyork 039f4ea
Fix docs.
gavofyork 4e67748
fix staking test with new chnages
kianenigma 7fe7e01
updating some tests, pending questions
shawntabrizi a911ee9
Merge branch 'gav-new-staking' of https://github.com/paritytech/subst…
shawntabrizi 514d5a6
More working tests
shawntabrizi 1808869
adds double staking test
kianenigma 2c4f738
Docs
gavofyork a163f87
Merge branch 'gav-new-staking' of github.com:paritytech/substrate int…
gavofyork 1296562
Merge remote-tracking branch 'origin/master' into gav-new-staking
gavofyork 200eea1
remove invalid slashing test
kianenigma 15b9da0
Payee stuff.
gavofyork 634ab7b
Merge branch 'gav-new-staking' of github.com:paritytech/substrate int…
gavofyork 94a46d4
Fix build
gavofyork 1a2ec9e
Docs
gavofyork dd7fba6
Fix test
gavofyork 4b0e1e6
Fix a couple of tests
gavofyork 61224f6
Layout plan for finishing tests before Pragmen
shawntabrizi e4ea05f
Merge branch 'gav-new-staking' of https://github.com/paritytech/subst…
shawntabrizi 3b9917a
Add some working tests
shawntabrizi 6f8f93d
re-build staking and reward tests
kianenigma 4029139
Merge branch 'gav-new-staking' of github.com:paritytech/substrate int…
kianenigma cc8f195
Add more tests
shawntabrizi b0129a0
Merge branch 'gav-new-staking' of https://github.com/paritytech/subst…
shawntabrizi 92c0621
fix offline grace test
shawntabrizi 16a9239
Nominator should have payee checked for cleanup
shawntabrizi 1064cfc
adds more nomination tets
kianenigma 6865917
merged
kianenigma 937c89c
adds validator prefs tests
kianenigma f606db2
Fix and clean up some TODOs
shawntabrizi 6bf11f9
Fix a couple of issues
gavofyork 9a02201
Fix tests
shawntabrizi be9f4f6
Merge branch 'gav-new-staking' of github.com:paritytech/substrate int…
kianenigma 4ddaa42
noting warnings from tests
shawntabrizi 54ee55b
final fix of local tests
kianenigma a53c3fd
Merge branch 'gav-new-staking' of https://github.com/paritytech/subst…
shawntabrizi 93da8d8
Fix slot_stake bug
shawntabrizi 4603cfe
Half baked test
shawntabrizi 8bb2e43
fix a few gobal tests
kianenigma 2f43287
Merge branch 'gav-new-staking' of github.com:paritytech/substrate int…
kianenigma a4ca045
Add logic to limit `unstake_threshold` set in storage
shawntabrizi ee54da0
Make sure to check before writing!
shawntabrizi 51d25ed
Move a couple of comments
gavofyork 231a02d
devops-parity updated wasm runtime blobs b58d9517 and merged in maste…
devops-parity 68b5938
fix last broken slot_stake test
kianenigma 3a74b73
Merge branch 'gav-new-staking' of github.com:paritytech/substrate int…
kianenigma ae1e1e5
Merge remote-tracking branch 'origin/master' into gav-new-staking
gavofyork da9cb52
Ignore broken test
gavofyork File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file modified
BIN
-16 Bytes
(100%)
...st-runtime/wasm/target/wasm32-unknown-unknown/release/substrate_test_runtime.compact.wasm
Binary file not shown.
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
Binary file modified
BIN
-142 Bytes
(100%)
node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm
Binary file not shown.
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
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
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
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
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
Oops, something went wrong.
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.
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.
isn't this an infinite recursive call? or is there any mechanism to ensure this calls
total_issuancegenerated bydecl_storage?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.
That's not new, but it does look dodgy...