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
Offchain Phragmén BREAKING. #4517
Merged
Merged
Changes from all commits
Commits
Show all changes
144 commits
Select commit
Hold shift + click to select a range
46ecd58
Initial skeleton for offchain phragmen
kianenigma a830ec9
Basic compact encoding decoding for results
kianenigma 8448ee9
add compact files
kianenigma 5e26a68
Bring back Self::ensure_storage_upgraded();
kianenigma 65b2df6
Make staking use compact stuff.
kianenigma 85b726c
First seemingly working version of reduce, full of todos
kianenigma bf053c2
Master.into()
kianenigma ca68e24
Everything phragmen related works again.
kianenigma 62e61db
Signing made easier, still issues.
kianenigma c4a77ac
Signing from offchain compile fine 😎
kianenigma 31b699a
make compact work with staked asssignment
kianenigma c5d8c51
Evaluation basics are in place.
kianenigma 6d4494e
Master.into()
kianenigma 35a7872
Move reduce into crate. Document stuff
kianenigma 0540646
move reduce into no_std
kianenigma da66da2
Add files
kianenigma d95010d
Remove other std deps. Runtime compiles
kianenigma 3f23367
Seemingly it is al stable; cycle implemented but not integrated.
kianenigma 3cb47fb
Add fuzzing code.
kianenigma a21e90b
Cleanup reduce a bit more.
kianenigma df7676b
a metric ton of tests for staking; wip 🔨
kianenigma 6f4a2fe
Master.into()
kianenigma 889b18c
Implement a lot more of the tests.
kianenigma 50f5399
wip getting the unsigned stuff to work
kianenigma 2bbdec4
A bit gleanup for unsigned debug
kianenigma c9cfcb8
Clean and finalize compact code.
kianenigma 3633a77
Document reduce.
kianenigma 686d263
Still problems with signing
kianenigma 295cdd7
We officaly duct taped the transaction submission stuff. 🤓
kianenigma 57b2b4e
Deadlock with keys again
kianenigma 6a33fc1
Runtime builds
kianenigma 4e951af
Unsigned test works 🙌
kianenigma 5ab3cf0
Some cleanups
kianenigma c88df34
Master.into()
kianenigma 31fd60e
Make all the tests compile and stuff
kianenigma 2623d98
Minor cleanup
kianenigma c911a87
Master.into()
kianenigma 2ed0a1d
fix more merge stuff
kianenigma 6bef2d9
Most tests work again.
kianenigma 201c11c
a very nasty bug in reduce
kianenigma eef09e5
Fix all integrations
kianenigma 51fc865
Fix more todos
kianenigma aa6186c
Revamp everything and everything
kianenigma 596bc77
Master.into()
kianenigma 084a355
Remove bogus test
kianenigma 817f8aa
Some review grumbles.
kianenigma d1e290f
Make it work with custom key type
kianenigma 02c4e3b
Some fixes
kianenigma aea7ad2
Fix doc test
kianenigma e2210cc
loop for submission
kianenigma ca20033
Fix cli, keyring etc.
kianenigma b2c4416
Merged with the generic phragmen -- maybe not perfectly but works
kianenigma 10e97e3
some cleanup
kianenigma 19cf777
Master.into()
kianenigma 54a5a35
Fix staking tests again
kianenigma d746fd4
fix per-things; bring patches from benchmarking
kianenigma 2f75ea7
better score prediction
kianenigma 2fa064b
Add fuzzer, more patches.
kianenigma 0afbde3
Some fixes
kianenigma 16d8c64
Fix tests
kianenigma b8efef4
More docs
kianenigma e72d642
Remove unused generics
kianenigma 9f227f9
Remove max-nominator footgun
kianenigma 9116285
Better fuzzer
kianenigma 36bbf4b
Master.into()
kianenigma 44c0a6b
Disable it ❌
kianenigma c3769fa
Master.into()
kianenigma f21df59
Bump.
kianenigma f9f92c4
Another round of self-review
kianenigma 4df9ed4
Master.into()
kianenigma 037057c
Refactor a lot
kianenigma 2b89c0e
More major fixes in perThing
kianenigma 4e44501
Add new fuzz file
kianenigma 5c3fc6c
Master.into()
kianenigma 7287c2b
Update lock
kianenigma ac6ce78
fix fuzzing code.
kianenigma 7be2268
Fix nominator retain test
kianenigma 1bd7850
Add slashing check
kianenigma 5f9844d
Update frame/staking/src/tests.rs
kianenigma 555007f
Some formatting nits
kianenigma c16ad73
Merge branch 'kiz-offchain-phragmen-4' of github.com:paritytech/subst…
kianenigma c8cc72f
Review comments.
kianenigma ceef0e6
Merge branch 'master' of github.com:paritytech/substrate into kiz-off…
kianenigma 62d4f5e
Fix cargo file
kianenigma fd9816a
Master.into()
kianenigma 85f1aa4
Almost all tests work again
kianenigma 9b8af93
Update frame/staking/src/tests.rs
kianenigma 58fcf27
Fix review comments
kianenigma 7f47696
Merge branch 'kiz-offchain-phragmen-4' of github.com:paritytech/subst…
kianenigma ef7eab2
More review stuff
kianenigma 5f70434
Some nits
kianenigma 4d82b4d
Merge branch 'master' of github.com:paritytech/substrate into kiz-off…
kianenigma 58267dc
Fix new staking / session / babe relation
kianenigma bee2f5d
Update primitives/phragmen/src/lib.rs
kianenigma 3def57b
Update primitives/phragmen/src/lib.rs
kianenigma 9590986
Update primitives/phragmen/compact/src/lib.rs
kianenigma 6566d81
Some doc updates to slashing
kianenigma b01000e
Merge branch 'kiz-offchain-phragmen-4' of github.com:paritytech/subst…
kianenigma 1667f6e
Fix derive
kianenigma 155e9a3
Master.into()
kianenigma e25c103
Remove imports
kianenigma 81ddd48
Remove unimplemented tests
kianenigma 87bb4d1
Master.into()
kianenigma eda82ae
nits
kianenigma 56d1f5e
Remove dbg
kianenigma 0c9c20f
Better fuzzing params
kianenigma f308817
Master.into()
kianenigma f014e2c
Remove unused pref map
kianenigma 26d9329
Deferred Slashing/Offence for offchain Phragmen (#5151)
kianenigma ecd042e
Fix build
kianenigma 63eb8c4
review comments
kianenigma 3cd2c55
fix more
kianenigma 1e4291c
Merge branch 'master' of github.com:paritytech/substrate into kiz-off…
kianenigma 918e58e
fix build
kianenigma 537d6ee
Some cleanups and self-reviews
kianenigma 98f9c1b
More minor self reviews
kianenigma b553cf5
Master.into()
kianenigma 199d8fb
Final nits
kianenigma a424a94
Merge branch 'master' of github.com:paritytech/substrate into kiz-off…
kianenigma 42dbf06
A holy darn big upstream merge.
kianenigma 202db20
Some merge fixes.
kianenigma 8372453
opt comment
kianenigma db50363
Master.into()
kianenigma 2692605
Fix build
kianenigma 2cf090c
Fix build again.
kianenigma ffda508
Merge branch 'master' into kiz-offchain-phragmen-4
gavofyork 4c56e36
Master.into()
kianenigma 18558af
Update frame/staking/fuzz/fuzz_targets/submit_solution.rs
kianenigma 6f9a2c5
Update frame/staking/src/slashing.rs
kianenigma cd3df80
Update frame/staking/src/offchain_election.rs
kianenigma 1153084
Fix review comments
kianenigma 4c274ab
Merge branch 'kiz-offchain-phragmen-4' of github.com:paritytech/subst…
kianenigma c75f441
Master.into()
kianenigma 34e3d7b
fix test
kianenigma ee3c4cb
=== 🔑 Revamp without staking key.
kianenigma 3c5dd95
Master.into()
kianenigma 5a1aa2f
Master.into()
kianenigma 03bb2a9
final round of changes.
kianenigma 8dd2564
Master.into()
kianenigma 4514432
Fix cargo-deny
kianenigma ce2ff51
Merge branch 'master' into kiz-offchain-phragmen-4
gavofyork 9c0f42c
Master.into()
kianenigma 94efcff
Master.into()
kianenigma 8182947
Update frame/staking/src/lib.rs
kianenigma 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.