mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 17:31:05 +00:00
Move grandpa crates to consensus folder (#13458)
* Move grandpa under consensus dir * Rename grandpa folder * Finish grandpa renaming * Minor tweaks * Cargo fmt * Adjust path to chain spec
This commit is contained in:
@@ -190,7 +190,7 @@ The API of `sc-network` allows one to register user-defined notification protoco
|
||||
`sc-network` automatically tries to open a substream towards each node for which the legacy
|
||||
Substream substream is open. The handshake is then performed automatically.
|
||||
|
||||
For example, the `sc-finality-grandpa` crate registers the `/paritytech/grandpa/1`
|
||||
For example, the `sc-consensus-grandpa` crate registers the `/paritytech/grandpa/1`
|
||||
notifications protocol.
|
||||
|
||||
At the moment, for backwards-compatibility, notification protocols are tied to the legacy
|
||||
|
||||
@@ -32,7 +32,7 @@ sc-consensus = { version = "0.10.0-dev", path = "../../consensus/common" }
|
||||
sc-peerset = { version = "4.0.0-dev", path = "../../peerset" }
|
||||
serde = { version = "1.0.136", features = ["derive"] }
|
||||
sp-consensus = { version = "0.10.0-dev", path = "../../../primitives/consensus/common" }
|
||||
sp-finality-grandpa = { version = "4.0.0-dev", path = "../../../primitives/finality-grandpa" }
|
||||
sp-consensus-grandpa = { version = "4.0.0-dev", path = "../../../primitives/consensus/grandpa" }
|
||||
sp-runtime = { version = "7.0.0", path = "../../../primitives/runtime" }
|
||||
sp-blockchain = { version = "4.0.0-dev", path = "../../../primitives/blockchain" }
|
||||
thiserror = "1.0"
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
use codec::{Decode, Encode};
|
||||
use futures::channel::oneshot;
|
||||
pub use sp_finality_grandpa::{AuthorityList, SetId};
|
||||
pub use sp_consensus_grandpa::{AuthorityList, SetId};
|
||||
use sp_runtime::traits::{Block as BlockT, NumberFor};
|
||||
use std::{fmt, sync::Arc};
|
||||
|
||||
|
||||
@@ -212,7 +212,7 @@
|
||||
//! `sc-network` automatically tries to open a substream towards each node for which the legacy
|
||||
//! Substream substream is open. The handshake is then performed automatically.
|
||||
//!
|
||||
//! For example, the `sc-finality-grandpa` crate registers the `/paritytech/grandpa/1`
|
||||
//! For example, the `sc-consensus-grandpa` crate registers the `/paritytech/grandpa/1`
|
||||
//! notifications protocol.
|
||||
//!
|
||||
//! At the moment, for backwards-compatibility, notification protocols are tied to the legacy
|
||||
|
||||
@@ -38,7 +38,7 @@ sp-arithmetic = { version = "6.0.0", path = "../../../primitives/arithmetic" }
|
||||
sp-blockchain = { version = "4.0.0-dev", path = "../../../primitives/blockchain" }
|
||||
sp-consensus = { version = "0.10.0-dev", path = "../../../primitives/consensus/common" }
|
||||
sp-core = { version = "7.0.0", path = "../../../primitives/core" }
|
||||
sp-finality-grandpa = { version = "4.0.0-dev", path = "../../../primitives/finality-grandpa" }
|
||||
sp-consensus-grandpa = { version = "4.0.0-dev", path = "../../../primitives/consensus/grandpa" }
|
||||
sp-runtime = { version = "7.0.0", path = "../../../primitives/runtime" }
|
||||
|
||||
[dev-dependencies]
|
||||
|
||||
@@ -34,7 +34,7 @@ use sc_network_common::sync::{
|
||||
},
|
||||
};
|
||||
use sp_blockchain::HeaderBackend;
|
||||
use sp_finality_grandpa::{AuthorityList, SetId};
|
||||
use sp_consensus_grandpa::{AuthorityList, SetId};
|
||||
use sp_runtime::traits::{Block as BlockT, Header, NumberFor, Zero};
|
||||
use std::{sync::Arc, task::Poll};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user