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

Chain API subsystem #1498

Merged
24 commits merged into from
Jul 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
fbf5393
chain-api subsystem skeleton
ordian Jul 29, 2020
34e51cd
chain-api subsystem: draft impl
ordian Jul 29, 2020
1ae33cf
chain-api subsystem: mock testclient
ordian Jul 30, 2020
154a65e
chain-api subsystem: impl HeaderBacked for TestClient
ordian Jul 30, 2020
9257f4a
chain-api subsystem: impl basic tests
ordian Jul 30, 2020
eccd0cb
chain-api subsystem: tiny guide
ordian Jul 30, 2020
4e66d5c
chain-api subsystem: rename ChainApiRequestMessage to ChainApiMessage
ordian Jul 30, 2020
ced5547
chain-api subsystem: add the page to the ToC
ordian Jul 30, 2020
7d822fb
chain-api subsystem: proper error type
ordian Jul 30, 2020
a5b0913
Merge branch 'master' into ao-chain-api-subsystem
ordian Jul 31, 2020
97b711a
chain-api subsystem: impl ancestors request
ordian Jul 31, 2020
5b49bce
chain-api subsystem: tests for ancestors request
ordian Jul 31, 2020
d2f86a6
guide: fix ancestor return type
ordian Jul 31, 2020
6876c50
runtime-api subsystem: remove unused dep
ordian Jul 31, 2020
9c1917e
fix fmt
ordian Jul 31, 2020
2ba20dd
fix outdated comment
ordian Jul 31, 2020
b4d7252
chain-api subsystem: s/format/to_string
ordian Jul 31, 2020
626622c
lower-case subsystem names
ordian Jul 31, 2020
c2acb3b
chain-api subsystem: resolve Finalized todo
ordian Jul 31, 2020
a54bfc5
chain-api subsystem: remove TODO
ordian Jul 31, 2020
d2d4891
extract request errors into a module
ordian Jul 31, 2020
b0e21ba
Merge branch 'master' into ao-chain-api-subsystem
ordian Jul 31, 2020
6227193
remove caching TODO
ordian Jul 31, 2020
d8803ac
fix imports
ordian Jul 31, 2020
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
13 changes: 12 additions & 1 deletion 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 @@ -47,6 +47,7 @@ members = [
"node/core/backing",
"node/core/bitfield-signing",
"node/core/candidate-validation",
"node/core/chain-api",
"node/core/proposer",
"node/core/runtime-api",
"node/network/bridge",
Expand Down
3 changes: 2 additions & 1 deletion node/core/bitfield-signing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ use keystore::KeyStorePtr;
use polkadot_node_subsystem::{
messages::{
self, AllMessages, AvailabilityStoreMessage, BitfieldDistributionMessage,
BitfieldSigningMessage, CandidateBackingMessage, RuntimeApiMessage, RuntimeApiError
BitfieldSigningMessage, CandidateBackingMessage, RuntimeApiMessage,
},
errors::RuntimeApiError,
util::{self, JobManager, JobTrait, ToJobTrait, Validator},
};
use polkadot_primitives::v1::{AvailabilityBitfield, CoreState, Hash, ValidatorIndex};
Expand Down
2 changes: 1 addition & 1 deletion node/core/candidate-validation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ use polkadot_subsystem::{
};
use polkadot_subsystem::messages::{
AllMessages, CandidateValidationMessage, RuntimeApiMessage, ValidationFailed, RuntimeApiRequest,
RuntimeApiError,
};
use polkadot_subsystem::errors::RuntimeApiError;
use polkadot_node_primitives::{ValidationResult, ValidationOutputs};
use polkadot_primitives::v1::{
ValidationCode, OmittedValidationData, PoV, CandidateDescriptor, LocalValidationData,
Expand Down
17 changes: 17 additions & 0 deletions node/core/chain-api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "polkadot-node-core-chain-api"
version = "0.1.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

[dependencies]
futures = { version = "0.3.5" }
sp-blockchain = { git = "https:/paritytech/substrate", branch = "master" }
polkadot-primitives = { path = "../../../primitives" }
polkadot-subsystem = { package = "polkadot-node-subsystem", path = "../../subsystem" }

[dev-dependencies]
futures = { version = "0.3.5", features = ["thread-pool"] }
maplit = "1.0.2"
polkadot-subsystem = { package = "polkadot-node-subsystem", path = "../../subsystem", features = ["test-helpers"] }
sp-core = { git = "https:/paritytech/substrate", branch = "master" }
Loading