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

Introduce interface for relay chain interaction #835

Merged
merged 63 commits into from
Dec 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
c3f77d1
Move `retrieve_dmq_contents` and `retrieve_all_inbound_hrmp_channel_c…
skunert Oct 14, 2021
6260554
Add cumulus-client-collator to polkadot-parachains package
skunert Oct 15, 2021
830f8e0
Remove more direct references to clients
skunert Oct 18, 2021
387b32f
Remove more direct references to clients
skunert Oct 19, 2021
b178df1
Move interface to its own crate
skunert Oct 20, 2021
5b4b9d7
Remove more direct references to clients
skunert Oct 20, 2021
cc66c2f
Remove more direct references to clients
skunert Oct 22, 2021
91c6a5c
revert network changes
skunert Oct 22, 2021
8d991cf
Merge branch 'master' into relay-chain-interface
skunert Nov 11, 2021
ea57405
Implement relaychaininterface for Arc<dyn RelayChainInterface>
skunert Nov 15, 2021
d7a7ffb
Remove unused code. Clean up imports.
skunert Nov 17, 2021
1c14ea5
Extract cumulu-client-network usages of polkadot-client
skunert Nov 17, 2021
2ffa0c3
Change edition to string in rustfmt
skunert Nov 17, 2021
026832d
Change BlockchainEvent parameters
skunert Nov 17, 2021
6350c8a
Remove polkadot-client dependency from cumulus-network
skunert Nov 18, 2021
0fabdf0
Modify tests to compile again
skunert Nov 23, 2021
1a810d4
Merge branch 'master' into relay-chain-interface
skunert Nov 23, 2021
3d0af0c
Cleanup
skunert Nov 23, 2021
1033b8b
Implement BlockchainEvents for TestApi
skunert Nov 23, 2021
d40f328
Remove references to backend from BlockAnnounceValidator
skunert Nov 24, 2021
a938b70
Extract get_state to RelayChainInterface
skunert Nov 25, 2021
9c865fe
Remove backend references from consensus structs
skunert Nov 25, 2021
054d22d
Move network to relay-chain-interface
skunert Nov 25, 2021
14ec0a1
Move network to RelayChainInterface
skunert Nov 30, 2021
5e42e77
Remove TestApi and add DummyRelayChainInterface
skunert Nov 30, 2021
06815ee
Remove network from BlockAnnounceValidator
skunert Nov 30, 2021
ce860cf
Remove references to full node from service.rs
skunert Nov 30, 2021
f8c8325
Move StartCollator and StartConsensus to RelayChainInterface
skunert Dec 1, 2021
b1b3814
Replace more references to full_node
skunert Dec 1, 2021
4b37786
Clean up and fix overseer handle
skunert Dec 2, 2021
00c1622
Merge branch 'master' into relay-chain-interface
skunert Dec 3, 2021
b619397
Remove unused import, commented code
skunert Dec 3, 2021
84fc3c1
Move relay_chain_full instantiation to interface crate
skunert Dec 3, 2021
6dfa4e6
Remove AuraConsensusBuilder
skunert Dec 3, 2021
ada4b06
Remove duplicate relay-chain-interface from test service
skunert Dec 3, 2021
6b4930c
Format
skunert Dec 6, 2021
8614027
Adjust naming and remove duplicate trait implementation
skunert Dec 6, 2021
0117359
Improve naming
skunert Dec 6, 2021
d0bc375
Fix type parameter name
skunert Dec 6, 2021
98ad008
Replace todo macro by unimplemented
skunert Dec 8, 2021
f9041f6
Remove `get_state_at` from interface
skunert Dec 10, 2021
197e400
Remove slot_duration from interface
skunert Dec 10, 2021
926d9fb
Extract checking for blocks into relay-chain-interface
skunert Dec 13, 2021
f18c5da
Minor adjustments suggested by the comments
skunert Dec 13, 2021
94a8a50
Improve naming, remove block generics
skunert Dec 13, 2021
6b250ba
Merge branch 'master' into relay-chain-interface
skunert Dec 13, 2021
f020868
Introduce constructor for RelayChainLocal
skunert Dec 13, 2021
f5967b3
Extract relay-chain-local to own crate
skunert Dec 20, 2021
4e6fbad
Remove polkadot-service dependency from relay-chain-interface
skunert Dec 20, 2021
4768ad9
Fix test
skunert Dec 20, 2021
9ec6cf8
Merge branch 'master' into relay-chain-interface
skunert Dec 20, 2021
dd64161
Move relay-chain-local to dev dependency in network
skunert Dec 20, 2021
b1b07b5
Remove unused dependency
skunert Dec 20, 2021
9ccc9bf
Remove unused relay-chain reference in AuraConsensus
skunert Dec 21, 2021
481d7e9
Remove unused builders, move wait_on_block to relaychain
skunert Dec 21, 2021
67ce2f2
Remove WaitOnRelayChain and add docs
skunert Dec 21, 2021
6f7094a
Remove unused dep
skunert Dec 22, 2021
d3599c2
Merge branch 'master' into relay-chain-interface
skunert Dec 22, 2021
83c977f
Format
skunert Dec 22, 2021
2f51a3e
Remove unused dependencies, fix lock issue
skunert Dec 22, 2021
aebfcda
Fix log output
skunert Dec 22, 2021
117ba4c
Remove `build_block_announce_validator` function
skunert Dec 22, 2021
f3af41d
Merge branch 'master' into relay-chain-interface
skunert Dec 22, 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
71 changes: 66 additions & 5 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 @@ -7,6 +7,7 @@ members = [
"client/network",
"client/pov-recovery",
"client/service",
"client/relay-chain-interface",
"pallets/aura-ext",
"pallets/collator-selection",
"pallets/dmp-queue",
Expand Down
1 change: 1 addition & 0 deletions client/collator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ polkadot-node-subsystem = { git = "https://github.com/paritytech/polkadot", bran
cumulus-client-network = { path = "../network" }
cumulus-client-consensus-common = { path = "../consensus/common" }
cumulus-primitives-core = { path = "../../primitives/core" }
cumulus-relay-chain-interface = { path = "../relay-chain-interface" }

# Other dependencies
codec = { package = "parity-scale-codec", version = "2.3.0", features = [ "derive" ] }
Expand Down
6 changes: 4 additions & 2 deletions client/collator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
//! Cumulus Collator implementation for Substrate.

use cumulus_client_network::WaitToAnnounce;
use cumulus_primitives_core::{CollectCollationInfo, ParachainBlockData, PersistedValidationData};
use cumulus_primitives_core::{
relay_chain::Hash as PHash, CollectCollationInfo, ParachainBlockData, PersistedValidationData,
};

use sc_client_api::BlockBackend;
use sp_api::ProvideRuntimeApi;
Expand All @@ -34,7 +36,7 @@ use polkadot_node_primitives::{
};
use polkadot_node_subsystem::messages::{CollationGenerationMessage, CollatorProtocolMessage};
use polkadot_overseer::Handle as OverseerHandle;
use polkadot_primitives::v1::{CollatorPair, Hash as PHash, HeadData, Id as ParaId};
use polkadot_primitives::v1::{CollatorPair, HeadData, Id as ParaId};

use codec::{Decode, Encode};
use futures::{channel::oneshot, FutureExt};
Expand Down
3 changes: 0 additions & 3 deletions client/consensus/aura/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ sc-telemetry = { git = "https://github.com/paritytech/substrate", branch = "mast
sc-consensus = { git = "https://github.com/paritytech/substrate", branch = "master" }
substrate-prometheus-endpoint = { git = "https://github.com/paritytech/substrate", branch = "master" }

# Polkadot dependencies
polkadot-client = { git = "https://github.com/paritytech/polkadot", branch = "master" }

# Cumulus dependencies
cumulus-client-consensus-common = { path = "../common" }
cumulus-primitives-core = { path = "../../../primitives/core" }
Expand Down
Loading