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

Commit 723fb71

Browse files
authored
Candidate Agreement + Consensus (#29)
* candidate statement importing * import votes on validity * import availability votes * candidate receipt type * make table mod public * test context for table * add harness for tests * some tests for misbehavior * produce proposal from table * count candidate issuance as implicit vote * keep track of messages known by validators * fix primitives compilation * simple BFT agreement * kill unused macro_use annotation * tests for BFT agreement * test for not concluding on different prepares * return summary upon statement import * accept bft agreement on proposal not locally submitted * check justification set for BFT * BFT rewrite: vote accumulator with tests * squash some warnings * a few more tests for the accumulator * add sender to table's signed statement * implement honest node strategy for BFT * inex -> index * import and broadcast lock proofs * poll repeatedly when state changes * don't broadcast advance vote immediately if locked * do not check validity of locked candidate * basic tests for the strategy * remove unused context trait and fix warning * address some review grumbles * address some more review nits * fix lock import logic and add a test * fix spaces * fix a couple more style grumbles * more type-safe justifications * rename Communication enum variants * improve some panic guard proofs * add trailing comma
1 parent 5b9c57b commit 723fb71

File tree

9 files changed

+2820
-16
lines changed

9 files changed

+2820
-16
lines changed

Cargo.lock

+18-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ polkadot-cli = { path = "cli", version = "0.1" }
99

1010
[workspace]
1111
members = [
12+
"candidate-agreement",
1213
"client",
1314
"collator",
1415
"contracts",

candidate-agreement/Cargo.toml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[package]
2+
name = "polkadot-candidate-agreement"
3+
version = "0.1.0"
4+
authors = ["Parity Technologies <admin@parity.io>"]
5+
6+
[dependencies]
7+
futures = "0.1"
8+
polkadot-primitives = { path = "../primitives" }

0 commit comments

Comments
 (0)