Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Decouple Staking and Election - Part 3: Signed Phase #7910

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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove dead test code
  • Loading branch information
coriolinus committed May 28, 2021
commit 22248e175cf6d940db5311a2f271871cc2aca92b
5 changes: 0 additions & 5 deletions frame/election-provider-multi-phase/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,11 +482,6 @@ impl ExtBuilder {
<SignedDepositWeight>::set(weight);
self
}
pub fn reward(self, base: u64, max: u64) -> Self {
<SignedRewardBase>::set(base);
<SignedRewardMax>::set(max);
self
}
pub fn signed_weight(self, weight: Weight) -> Self {
<SignedMaxWeight>::set(weight);
self
Expand Down