mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 05:41:07 +00:00
Rename basic-authority to basic-authorship (#4640)
* Rename basic-authority to basic-authorship * Revert weird tab. * Fix rename.
This commit is contained in:
committed by
Gavin Wood
parent
60feeb7ad6
commit
437772be9e
@@ -43,6 +43,7 @@ TO_RENAME=(
|
|||||||
"sp-finality-granpda sp-finality-grandpa"
|
"sp-finality-granpda sp-finality-grandpa"
|
||||||
"sp-sesssion sp-session"
|
"sp-sesssion sp-session"
|
||||||
"sp-tracing-pool sp-transaction-pool"
|
"sp-tracing-pool sp-transaction-pool"
|
||||||
|
"sc-basic-authority sc-basic-authorship"
|
||||||
|
|
||||||
# PRIMITIVES
|
# PRIMITIVES
|
||||||
"substrate-application-crypto sp-application-crypto"
|
"substrate-application-crypto sp-application-crypto"
|
||||||
@@ -88,7 +89,7 @@ TO_RENAME=(
|
|||||||
"substrate-client sc-client"
|
"substrate-client sc-client"
|
||||||
"substrate-client-api sc-api"
|
"substrate-client-api sc-api"
|
||||||
"substrate-authority-discovery sc-authority-discovery"
|
"substrate-authority-discovery sc-authority-discovery"
|
||||||
"substrate-basic-authorship sc-basic-authority"
|
"substrate-basic-authorship sc-basic-authorship"
|
||||||
"substrate-block-builder sc-block-builder"
|
"substrate-block-builder sc-block-builder"
|
||||||
"substrate-chain-spec sc-chain-spec"
|
"substrate-chain-spec sc-chain-spec"
|
||||||
"substrate-chain-spec-derive sc-chain-spec-derive"
|
"substrate-chain-spec-derive sc-chain-spec-derive"
|
||||||
|
|||||||
Generated
+3
-3
@@ -3044,7 +3044,7 @@ dependencies = [
|
|||||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"rand 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"rand 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"sc-authority-discovery 0.8.0",
|
"sc-authority-discovery 0.8.0",
|
||||||
"sc-basic-authority 0.8.0",
|
"sc-basic-authorship 0.8.0",
|
||||||
"sc-chain-spec 2.0.0",
|
"sc-chain-spec 2.0.0",
|
||||||
"sc-cli 0.8.0",
|
"sc-cli 0.8.0",
|
||||||
"sc-client 0.8.0",
|
"sc-client 0.8.0",
|
||||||
@@ -3223,7 +3223,7 @@ dependencies = [
|
|||||||
"node-template-runtime 2.0.0",
|
"node-template-runtime 2.0.0",
|
||||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"sc-basic-authority 0.8.0",
|
"sc-basic-authorship 0.8.0",
|
||||||
"sc-cli 0.8.0",
|
"sc-cli 0.8.0",
|
||||||
"sc-client 0.8.0",
|
"sc-client 0.8.0",
|
||||||
"sc-consensus-aura 0.8.0",
|
"sc-consensus-aura 0.8.0",
|
||||||
@@ -5037,7 +5037,7 @@ dependencies = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "sc-basic-authority"
|
name = "sc-basic-authorship"
|
||||||
version = "0.8.0"
|
version = "0.8.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ grandpa-primitives = { version = "2.0.0", package = "sp-finality-grandpa", path
|
|||||||
sc-client = { version = "0.8", path = "../../client/" }
|
sc-client = { version = "0.8", path = "../../client/" }
|
||||||
node-template-runtime = { version = "2.0.0", path = "runtime" }
|
node-template-runtime = { version = "2.0.0", path = "runtime" }
|
||||||
sp-runtime = { version = "2.0.0", path = "../../primitives/runtime" }
|
sp-runtime = { version = "2.0.0", path = "../../primitives/runtime" }
|
||||||
sc-basic-authority = { path = "../../client/basic-authorship" }
|
sc-basic-authorship = { path = "../../client/basic-authorship" }
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
vergen = "3.0.4"
|
vergen = "3.0.4"
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ use sc_executor::native_executor_instance;
|
|||||||
pub use sc_executor::NativeExecutor;
|
pub use sc_executor::NativeExecutor;
|
||||||
use sp_consensus_aura::sr25519::{AuthorityPair as AuraPair};
|
use sp_consensus_aura::sr25519::{AuthorityPair as AuraPair};
|
||||||
use grandpa::{self, FinalityProofProvider as GrandpaFinalityProofProvider};
|
use grandpa::{self, FinalityProofProvider as GrandpaFinalityProofProvider};
|
||||||
use sc_basic_authority;
|
|
||||||
use futures::{FutureExt, compat::Future01CompatExt};
|
use futures::{FutureExt, compat::Future01CompatExt};
|
||||||
|
|
||||||
// Our native executor instance.
|
// Our native executor instance.
|
||||||
@@ -107,7 +106,7 @@ pub fn new_full<C: Send + Default + 'static>(config: Configuration<C, GenesisCon
|
|||||||
.build()?;
|
.build()?;
|
||||||
|
|
||||||
if participates_in_consensus {
|
if participates_in_consensus {
|
||||||
let proposer = sc_basic_authority::ProposerFactory {
|
let proposer = sc_basic_authorship::ProposerFactory {
|
||||||
client: service.client(),
|
client: service.client(),
|
||||||
transaction_pool: service.transaction_pool(),
|
transaction_pool: service.transaction_pool(),
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ grandpa = { version = "0.8", package = "sc-finality-grandpa", path = "../../../c
|
|||||||
sc-client-db = { version = "0.8", default-features = false, path = "../../../client/db" }
|
sc-client-db = { version = "0.8", default-features = false, path = "../../../client/db" }
|
||||||
sc-offchain = { version = "2.0.0", path = "../../../client/offchain" }
|
sc-offchain = { version = "2.0.0", path = "../../../client/offchain" }
|
||||||
sc-rpc = { version = "2.0.0", path = "../../../client/rpc" }
|
sc-rpc = { version = "2.0.0", path = "../../../client/rpc" }
|
||||||
sc-basic-authority = { version = "0.8", path = "../../../client/basic-authorship" }
|
sc-basic-authorship = { version = "0.8", path = "../../../client/basic-authorship" }
|
||||||
sc-service = { version = "0.8", default-features = false, path = "../../../client/service" }
|
sc-service = { version = "0.8", default-features = false, path = "../../../client/service" }
|
||||||
sc-telemetry = { version = "2.0.0", path = "../../../client/telemetry" }
|
sc-telemetry = { version = "2.0.0", path = "../../../client/telemetry" }
|
||||||
sc-authority-discovery = { version = "0.8", path = "../../../client/authority-discovery" }
|
sc-authority-discovery = { version = "0.8", path = "../../../client/authority-discovery" }
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ macro_rules! new_full {
|
|||||||
($with_startup_data)(&block_import, &babe_link);
|
($with_startup_data)(&block_import, &babe_link);
|
||||||
|
|
||||||
if participates_in_consensus {
|
if participates_in_consensus {
|
||||||
let proposer = sc_basic_authority::ProposerFactory {
|
let proposer = sc_basic_authorship::ProposerFactory {
|
||||||
client: service.client(),
|
client: service.client(),
|
||||||
transaction_pool: service.transaction_pool(),
|
transaction_pool: service.transaction_pool(),
|
||||||
};
|
};
|
||||||
@@ -509,7 +509,7 @@ mod tests {
|
|||||||
|
|
||||||
let parent_id = BlockId::number(service.client().chain_info().best_number);
|
let parent_id = BlockId::number(service.client().chain_info().best_number);
|
||||||
let parent_header = service.client().header(&parent_id).unwrap().unwrap();
|
let parent_header = service.client().header(&parent_id).unwrap().unwrap();
|
||||||
let mut proposer_factory = sc_basic_authority::ProposerFactory {
|
let mut proposer_factory = sc_basic_authorship::ProposerFactory {
|
||||||
client: service.client(),
|
client: service.client(),
|
||||||
transaction_pool: service.transaction_pool(),
|
transaction_pool: service.transaction_pool(),
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "sc-basic-authority"
|
name = "sc-basic-authorship"
|
||||||
version = "0.8.0"
|
version = "0.8.0"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
//! # Example
|
//! # Example
|
||||||
//!
|
//!
|
||||||
//! ```
|
//! ```
|
||||||
//! # use sc_basic_authority::ProposerFactory;
|
//! # use sc_basic_authorship::ProposerFactory;
|
||||||
//! # use sp_consensus::{Environment, Proposer, RecordProof};
|
//! # use sp_consensus::{Environment, Proposer, RecordProof};
|
||||||
//! # use sp_runtime::generic::BlockId;
|
//! # use sp_runtime::generic::BlockId;
|
||||||
//! # use std::{sync::Arc, time::Duration};
|
//! # use std::{sync::Arc, time::Duration};
|
||||||
|
|||||||
Reference in New Issue
Block a user