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
Decouple Staking and Election - Part 3: Signed Phase #7910
Merged
Merged
Changes from 1 commit
Commits
Show all changes
103 commits
Select commit
Hold shift + click to select a range
d998b12
Base features and traits.
kianenigma 5aea9cc
pallet and unsigned phase
kianenigma 8607d3d
add signed phase.
kianenigma 6523f5b
remove comments
kianenigma 632e107
Undo bad formattings.
kianenigma c52e65d
Master.into()
kianenigma b4fc5e1
some formatting cleanup.
kianenigma cc26881
Small self-cleanup.
kianenigma 15cdb28
Add todo
kianenigma 67a9fae
Master.into()
kianenigma 75eca3f
Make it all build
kianenigma 8daec3a
self-review
kianenigma 49613ed
Some doc tests.
kianenigma eae69b0
Upstream.into()
kianenigma 35f1faf
Some changes from other PR
kianenigma 6c82d9f
Upstream.into()
kianenigma e6ffc4d
Fix session test
kianenigma 483018c
Master.into()
kianenigma 54460eb
Update bin/node/runtime/src/lib.rs
kianenigma 33b8e69
Fix name.
kianenigma be89dc5
Merge branch 'kiz-election-provider-3-signed-phase' of github.com:par…
kianenigma 62f8ce4
cargo run --release --features=runtime-benchmarks --manifest-path=bin…
dff422a
typos and verbiage
coriolinus 5f1637e
Merge remote-tracking branch 'origin/master' into kiz-election-provid…
coriolinus c58b2f9
no glob imports in signed.rs
coriolinus 76c3387
meaningful generic type parameters for SignedSubmission
coriolinus 872a3c8
dedup feasibility check weight calculation
coriolinus f5f4605
simplify/optimize fn insert_submission
coriolinus 859f594
tests: remove glob, cause to build without error
coriolinus 0fc7a58
use sp_std::vec::Vec
coriolinus 1137698
maintain invariant within fn insert_submission
coriolinus 8c26900
fix accidentally ordering the list backward
coriolinus a882ff5
intentionally order the list in reverse
coriolinus d5fe671
get rid of unused import
coriolinus 75ddba9
ensure signed submissions are cleared in early elect
coriolinus abae602
finalize the signed phase when appropriate
coriolinus f4aea1d
resolve dispatch error todo
coriolinus ebface4
update assumptions in submit benchmark
coriolinus 151e880
Merge remote-tracking branch 'origin/master' into kiz-election-provid…
189a870
Merge remote-tracking branch 'origin/master' into kiz-election-provid…
8d95722
cargo run --release --features=runtime-benchmarks --manifest-path=bin…
edfb376
Merge remote-tracking branch 'origin/master' into kiz-election-provid…
coriolinus a3574d5
line length
coriolinus 5ecd6b5
Master.into()
kianenigma ee66c84
make a few more things pub
kianenigma 17faa86
restore missing import
coriolinus 94314bf
update ui test output
coriolinus 9e6b559
update tests from master branch
coriolinus 10cfdee
Merge branch 'master' of https://github.com/paritytech/substrate into…
6f9cf10
cargo run --release --features=runtime-benchmarks --manifest-path=bin…
134ab4f
remove duplicate definitions
coriolinus 61b7680
remove signed reward factor due to its attack potential
coriolinus b06f3a8
Update frame/election-provider-multi-phase/src/signed.rs
coriolinus ca97603
remove SignedRewardMax; no longer necessary
coriolinus 7ce5afb
compute the encoded size without actually encoding
coriolinus bdf45ba
remove unused PostInfo
coriolinus 87b7ff1
pub use some stuff
coriolinus 308b522
ensure `pub use` things are in fact `pub`
coriolinus 0d892f4
add event information: was another solution ejected to make room
coriolinus ea2b1ab
unconditionally run the unsigned phase even if signed was successful
coriolinus 22248e1
remove dead test code
coriolinus c651962
meaningful witness data name
coriolinus 29d9242
use errors instead of defensive `unwrap_or_default`
coriolinus fd38356
get rid of a log message redundant with an event
coriolinus c503fa7
saturating math
coriolinus 252f310
import Saturating
coriolinus 725cadf
mv `fn submit` to end of call
coriolinus 88f856a
add log line
kianenigma ce0974f
Use a better data structure for SignedSubmissions instead of Vec (#8933)
coriolinus c1a4f1e
Merge remote-tracking branch 'origin/master' into kiz-election-provid…
coriolinus 75e6637
Merge branch 'master' of https://github.com/paritytech/substrate into…
2f26f16
cargo run --release --features=runtime-benchmarks --manifest-path=bin…
eb07d0b
remove duplicate weight definitions injected by benchmark bot
coriolinus 18f4aaa
Merge remote-tracking branch 'origin/master' into kiz-election-provid…
coriolinus a6b3770
Merge remote-tracking branch 'origin/master' into kiz-election-provid…
coriolinus fb187fc
check deletion overlay before getting
coriolinus 2ed81bc
clarify non-conflict between delete, insert overlays
coriolinus 8f0c16e
drain can be used wrong so is private
coriolinus 0b0abb8
update take_submission docs
coriolinus 73071aa
more drain improvements
coriolinus 955f5bc
more take_submission docs
coriolinus 65b6926
debug assertion helps prove expectation is valid
coriolinus 7b673d1
doc on changing SignedMaxSubmissions
coriolinus 300c5f6
take_submission inner doc on system properties
coriolinus f84093b
Apply suggestions from code review
coriolinus 2355a78
get SolutionOrSnapshotSize out of the loop
coriolinus e4e9eda
doc which items comprise `SignedSubmissions`
coriolinus 65d7af6
add doc about index as unique identifier
coriolinus 2c61152
Add debug assertions to prove drain worked properly
coriolinus 368e97b
replace take_submission with swap_out_submission
coriolinus 2491916
use a match to demonstrate all cases from signed_submissions.insert
coriolinus e12e542
refactor signed_submissions.insert return type
coriolinus a195ed8
prettify test assertion
coriolinus b0a57da
improve docs
coriolinus 3325691
add tests that finalize_signed_phase is idempotent
coriolinus e0b3a52
add some debug assertions to guard against misuse of storage
coriolinus ad9d095
log internal logic errors instead of panicing
coriolinus 3a46890
Merge remote-tracking branch 'origin/master' into kiz-election-provid…
coriolinus 0ddfeda
don't store the reward with each signed submission
coriolinus bf4572c
emit Rewarded, Slashed events as appropriate
coriolinus dfd0bf1
update docs
coriolinus 786898d
use a custom enum to be explicit about the outcome of insertion
coriolinus 9e6e75f
remove outdated docs
coriolinus 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
remove signed reward factor due to its attack potential
- Loading branch information
commit 61b76800b8c2c1b5f7c7d68399b3bedd58943d51
There are no files selected for viewing
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
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.