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

Grandpa warp sync request-response protocol #7711

Merged
42 commits merged into from
Jan 21, 2021
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
cf544ef
Made a start
expenses Dec 7, 2020
e7722a6
So the proof between authority set is phragmen one, this is crazy big,
cheme Sep 2, 2020
fe05560
ok getting from header digest seems doable.
cheme Sep 2, 2020
43ff21e
for testing
cheme Sep 3, 2020
771f689
get set id from storage directly (should use runtime to handler change).
cheme Sep 3, 2020
9cb4907
move test to init
cheme Sep 4, 2020
e395804
correct auth key
cheme Sep 4, 2020
792f4c9
fix iteration
cheme Sep 4, 2020
ef36090
Correct proof content
cheme Sep 4, 2020
d9a6089
actually update block number.
cheme Sep 4, 2020
989bda2
actually check last justif against its header
cheme Sep 4, 2020
f8fc255
justification relation to new authorities through header hash check is
cheme Sep 4, 2020
80fac43
Few changes
expenses Dec 7, 2020
3314a2d
Merge branch 'cheme-rebase' into ashley-grandpa-warp-sync
expenses Dec 7, 2020
fec784e
Connected up cheme's branch
expenses Dec 7, 2020
4c61d28
Clean up
expenses Dec 7, 2020
733fbdd
Merge remote-tracking branch 'origin/master' into ashley-grandpa-warp…
expenses Dec 10, 2020
5042071
Move things around a bit so that adding the grandpa warp sync request…
expenses Dec 14, 2020
7020c90
Merge remote-tracking branch 'origin/master' into ashley-grandpa-warp…
expenses Jan 4, 2021
ea59807
Nits
expenses Jan 5, 2021
224d255
Changes to comments
expenses Jan 5, 2021
d44b2e8
Cheme changes
expenses Jan 5, 2021
0b5c107
Remove todos and test compile.
cheme Jan 5, 2021
a3a3143
Rename _authority_ related proof function to _warp_sync_ .
cheme Jan 5, 2021
97736e1
Update client/grandpa-warp-sync/src/lib.rs
cheme Jan 5, 2021
19448bb
Put the warp sync request response protocol behind a feature flag bec…
expenses Jan 5, 2021
f36b229
Merge branch 'ashley-grandpa-warp-sync' of github.com:paritytech/subs…
cheme Jan 5, 2021
1776180
Update client/grandpa-warp-sync/src/lib.rs
cheme Jan 5, 2021
6c17505
Merge remote-tracking branch 'origin/master' into ashley-grandpa-warp…
expenses Jan 11, 2021
cc6722c
Update Cargo.lock
expenses Jan 11, 2021
1cb4290
Adding test, comment on limitation related to 'delay', this could
cheme Jan 11, 2021
5deb425
Set between a delay override last fragment.
cheme Jan 12, 2021
b887b7f
Check for pending authority set change at start.
cheme Jan 12, 2021
5c235fa
adjust index
cheme Jan 12, 2021
eaa54b2
custom cache is not a good idea.
cheme Jan 12, 2021
0bddd32
Use a simple cache instead.
cheme Jan 12, 2021
827ee85
restore broken indentation
cheme Jan 12, 2021
58eeeca
Merge remote-tracking branch 'origin/master' into ashley-grandpa-warp…
expenses Jan 14, 2021
6b06546
Merge branch 'ashley-grandpa-warp-sync' of github.com:paritytech/subs…
expenses Jan 14, 2021
be4b02b
Merge remote-tracking branch 'upstream/master' into HEAD
tomaka Jan 21, 2021
9d9476c
Address crate rename
tomaka Jan 21, 2021
a31f1dd
Merge conflict badly resolved, sorry
tomaka Jan 21, 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
23 changes: 23 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ members = [
"client/executor/wasmtime",
"client/executor/runtime-test",
"client/finality-grandpa",
"client/grandpa-warp-sync",
"client/informant",
"client/light",
"client/tracing",
Expand Down
2 changes: 2 additions & 0 deletions bin/node-template/node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ pub fn new_full(mut config: Configuration) -> Result<TaskManager, ServiceError>
sc_service::build_network(sc_service::BuildNetworkParams {
config: &config,
client: client.clone(),
backend: backend.clone(),
transaction_pool: transaction_pool.clone(),
spawn_handle: task_manager.spawn_handle(),
import_queue,
Expand Down Expand Up @@ -261,6 +262,7 @@ pub fn new_light(mut config: Configuration) -> Result<TaskManager, ServiceError>
sc_service::build_network(sc_service::BuildNetworkParams {
config: &config,
client: client.clone(),
backend: backend.clone(),
transaction_pool: transaction_pool.clone(),
spawn_handle: task_manager.spawn_handle(),
import_queue,
Expand Down
7 changes: 0 additions & 7 deletions bin/node/cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ pub enum Subcommand {
/// Key management cli utilities
Key(KeySubcommand),

/// The custom inspect subcommmand for decoding blocks and extrinsics.
#[structopt(
name = "inspect",
about = "Decode given block or extrinsic using current native runtime."
)]
Inspect(node_inspect::cli::InspectCmd),

/// The custom benchmark subcommmand benchmarking runtime pallets.
#[structopt(name = "benchmark", about = "Benchmark runtime pallets.")]
Benchmark(frame_benchmarking_cli::BenchmarkCmd),
Expand Down
5 changes: 0 additions & 5 deletions bin/node/cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ pub fn run() -> Result<()> {
}
})
}
Some(Subcommand::Inspect(cmd)) => {
let runner = cli.create_runner(cmd)?;

runner.sync_run(|config| cmd.run::<Block, RuntimeApi, Executor>(config))
}
Some(Subcommand::Benchmark(cmd)) => {
if cfg!(feature = "runtime-benchmarks") {
let runner = cli.create_runner(cmd)?;
Expand Down
2 changes: 2 additions & 0 deletions bin/node/cli/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ pub fn new_full_base(
sc_service::build_network(sc_service::BuildNetworkParams {
config: &config,
client: client.clone(),
backend: backend.clone(),
transaction_pool: transaction_pool.clone(),
spawn_handle: task_manager.spawn_handle(),
import_queue,
Expand Down Expand Up @@ -389,6 +390,7 @@ pub fn new_light_base(mut config: Configuration) -> Result<(
sc_service::build_network(sc_service::BuildNetworkParams {
config: &config,
client: client.clone(),
backend: backend.clone(),
transaction_pool: transaction_pool.clone(),
spawn_handle: task_manager.spawn_handle(),
import_queue,
Expand Down
Loading