Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
870f7dd
Implement OverseerRuntimeClient
skunert Mar 15, 2022
262c6f2
blockchainevents
skunert Mar 24, 2022
c2d13f0
Merge branch 'master' into collator-rpc-poc
skunert Apr 8, 2022
0890e08
Update patches
skunert Apr 11, 2022
59d3357
Finish merging rntime-api subsystem
skunert Apr 25, 2022
acb33f2
Merge branch 'cumulus-2022-04-25' into collator-rpc-poc
skunert Apr 25, 2022
ab7dfeb
First version that is able to produce blocks
skunert May 6, 2022
d88094a
Merge branch 'polkadot-cumulus-2022-05-11' into collator-rpc-poc
skunert May 11, 2022
e37cdf9
Make OverseerRuntimeClient async
skunert May 18, 2022
684696f
Move overseer notification stream forwarding to cumulus
skunert May 27, 2022
a2454d5
Merge branch 'cumulus-2022-05-30' into collator-rpc-poc
skunert May 30, 2022
2f4ea76
Remove unused imports
skunert Jun 1, 2022
3a1a586
Add more logging to collator-protocol
skunert Jun 16, 2022
fba6b8f
Lockfile
skunert Jun 20, 2022
6469e3a
Merge branch 'cumulus-2022-06-20' into collator-rpc-poc
skunert Jun 20, 2022
19123f7
Use hashes in OverseerRuntimeClient
skunert Jul 11, 2022
969586b
Merge branch 'cumulus-2022-07-11' into collator-rpc-poc
skunert Jul 11, 2022
accd10d
Move OverseerRuntimeClient into extra module
skunert Jul 12, 2022
71f8bb1
Fix old session info call and make HeadSupportsParachain async
skunert Jul 13, 2022
01b633e
Improve naming of trait
skunert Jul 14, 2022
82c95aa
Merge branch 'master' into runtime-api-async-trait
skunert Jul 14, 2022
d04ec57
Cleanup
skunert Jul 14, 2022
9f5f084
Remove unused From trait implementation
skunert Jul 14, 2022
ed2b7ca
Remove unwanted debug print
skunert Jul 14, 2022
894ab5b
Move trait to polkadot-node-subsystem-types
skunert Jul 15, 2022
18ff03a
Add sections to runtime client
skunert Jul 15, 2022
b1fa616
Reorder methods
skunert Jul 15, 2022
b0d1a25
Fix spelling
skunert Jul 18, 2022
e693405
Fix spacing in Cargo.toml
skunert Jul 18, 2022
56c47df
Remove unused babe methods
skunert Jul 18, 2022
f4868db
Merge branch 'master' into runtime-api-async-trait
skunert Jul 19, 2022
bba2af7
Merge branch 'master' into runtime-api-async-trait
skunert Jul 19, 2022
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
Merge branch 'polkadot-cumulus-2022-05-11' into collator-rpc-poc
  • Loading branch information
skunert committed May 11, 2022
commit d88094a21a08b63498f55c3d6e974551373c6c31
9 changes: 0 additions & 9 deletions Cargo.lock

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

7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ try-runtime = [ "polkadot-cli/try-runtime" ]
fast-runtime = [ "polkadot-cli/fast-runtime" ]
runtime-metrics = [ "polkadot-cli/runtime-metrics" ]
pyroscope = ["polkadot-cli/pyroscope"]
staging-client = ["polkadot-cli/staging-client"]
[patch."https://github.com/paritytech/substrate"]
node-template ={path = "/Users/skunert/work/repos/substrate/bin/node-template/node" }
frame-benchmarking ={path = "/Users/skunert/work/repos/substrate/frame/benchmarking" }
Expand Down Expand Up @@ -242,11 +243,11 @@ sc-executor ={path = "/Users/skunert/work/repos/substrate/client/executor" }
sc-executor-common ={path = "/Users/skunert/work/repos/substrate/client/executor/common" }
sc-allocator ={path = "/Users/skunert/work/repos/substrate/client/allocator" }
sp-maybe-compressed-blob ={path = "/Users/skunert/work/repos/substrate/primitives/maybe-compressed-blob" }
sp-sandbox ={path = "/Users/skunert/work/repos/substrate/primitives/sandbox" }
sp-serializer ={path = "/Users/skunert/work/repos/substrate/primitives/serializer" }
sc-executor-wasmi ={path = "/Users/skunert/work/repos/substrate/client/executor/wasmi" }
sc-executor-wasmtime ={path = "/Users/skunert/work/repos/substrate/client/executor/wasmtime" }
sc-runtime-test ={path = "/Users/skunert/work/repos/substrate/client/executor/runtime-test" }
sp-sandbox ={path = "/Users/skunert/work/repos/substrate/primitives/sandbox" }
sp-tasks ={path = "/Users/skunert/work/repos/substrate/primitives/tasks" }
substrate-wasm-builder ={path = "/Users/skunert/work/repos/substrate/utils/wasm-builder" }
sc-tracing ={path = "/Users/skunert/work/repos/substrate/client/tracing" }
Expand Down Expand Up @@ -284,7 +285,9 @@ sc-network ={path = "/Users/skunert/work/repos/substrate/client/network" }
fork-tree ={path = "/Users/skunert/work/repos/substrate/utils/fork-tree" }
sc-consensus ={path = "/Users/skunert/work/repos/substrate/client/consensus/common" }
sc-utils ={path = "/Users/skunert/work/repos/substrate/client/utils" }
sc-network-common ={path = "/Users/skunert/work/repos/substrate/client/network/common" }
sc-peerset ={path = "/Users/skunert/work/repos/substrate/client/peerset" }
sc-network-sync ={path = "/Users/skunert/work/repos/substrate/client/network/sync" }
sp-finality-grandpa ={path = "/Users/skunert/work/repos/substrate/primitives/finality-grandpa" }
sc-telemetry ={path = "/Users/skunert/work/repos/substrate/client/telemetry" }
sc-client-db ={path = "/Users/skunert/work/repos/substrate/client/db" }
Expand Down Expand Up @@ -370,6 +373,8 @@ pallet-membership ={path = "/Users/skunert/work/repos/substrate/frame/membership
pallet-mmr ={path = "/Users/skunert/work/repos/substrate/frame/merkle-mountain-range" }
sp-mmr-primitives ={path = "/Users/skunert/work/repos/substrate/primitives/merkle-mountain-range" }
pallet-multisig ={path = "/Users/skunert/work/repos/substrate/frame/multisig" }
pallet-nomination-pools ={path = "/Users/skunert/work/repos/substrate/frame/nomination-pools" }
pallet-nomination-pools-benchmarking ={path = "/Users/skunert/work/repos/substrate/frame/nomination-pools/benchmarking" }
pallet-offences-benchmarking ={path = "/Users/skunert/work/repos/substrate/frame/offences/benchmarking" }
pallet-proxy ={path = "/Users/skunert/work/repos/substrate/frame/proxy" }
pallet-recovery ={path = "/Users/skunert/work/repos/substrate/frame/recovery" }
Expand Down
2 changes: 1 addition & 1 deletion node/core/runtime-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#![deny(unused_crate_dependencies)]
#![warn(missing_docs)]

use polkadot_node_subsystem_util::metrics::{self, prometheus};
use polkadot_node_subsystem_util::metrics::prometheus;
use polkadot_overseer::OverseerRuntimeClient;
use polkadot_primitives::{
runtime_api::ParachainHost,
Expand Down
16 changes: 14 additions & 2 deletions node/overseer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ use client::{BlockImportNotification, BlockchainEvents, FinalityNotification};
use polkadot_primitives::{
runtime_api::ParachainHost,
v2::{
Block, BlockId, BlockNumber, CandidateCommitments, CandidateEvent,
CommittedCandidateReceipt, CoreState, GroupRotationInfo, Hash, Header, Id,
Block, BlockId, BlockNumber, CandidateCommitments, CandidateEvent, CandidateHash,
CommittedCandidateReceipt, CoreState, DisputeState, GroupRotationInfo, Hash, Header, Id,
InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption,
PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionIndex, SessionInfo,
ValidationCode, ValidationCodeHash, ValidatorId, ValidatorIndex, ValidatorSignature,
Expand Down Expand Up @@ -1047,6 +1047,11 @@ pub trait OverseerRuntimeClient {
) -> std::result::Result<Vec<sp_authority_discovery::AuthorityId>, ApiError>;

fn api_version_parachain_host(&self, at: &BlockId) -> Result<Option<u32>, ApiError>;

fn staging_get_disputes(
&self,
at: &BlockId,
) -> Result<Vec<(SessionIndex, CandidateHash, DisputeState<BlockNumber>)>, ApiError>;
}

impl<T> OverseerRuntimeClient for T
Expand Down Expand Up @@ -1244,4 +1249,11 @@ where
// self.runtime_api().session_info_before_version_2(at, index)
todo!()
}

fn staging_get_disputes(
&self,
at: &BlockId,
) -> Result<Vec<(SessionIndex, CandidateHash, DisputeState<BlockNumber>)>, ApiError> {
self.runtime_api().staging_get_disputes(at)
}
}
You are viewing a condensed version of this merge commit. You can view the full changes here.