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

Commit

Permalink
Fix Compile
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav committed Jun 10, 2022
1 parent 9984c09 commit 6d9406c
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion node/service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pangolin-runtime = { path = "../runtime/pangolin" }
pangoro-runtime = { path = "../runtime/pangoro" }
# paritytech
# beefy-gadget = { git = "https://github.com/darwinia-network/substrate", branch = "darwinia-v0.12.3" }
# beefy-primitives = { git = "https://github.com/darwinia-network/substrate", branch = "darwinia-v0.12.3" }
beefy-primitives = { git = "https://github.com/darwinia-network/substrate", branch = "darwinia-v0.12.3" }
frame-benchmarking = { git = "https://github.com/darwinia-network/substrate", branch = "darwinia-v0.12.3" }
frame-system-rpc-runtime-api = { git = "https://github.com/darwinia-network/substrate", branch = "darwinia-v0.12.3" }
pallet-im-online = { git = "https://github.com/darwinia-network/substrate", branch = "darwinia-v0.12.3" }
Expand Down
12 changes: 6 additions & 6 deletions node/service/src/chain_spec/pangolin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ pub fn genesis_config() -> ChainSpec {
authorities: vec![],
epoch_config: Some(BABE_GENESIS_EPOCH_CONFIG)
},
beefy_gadget: Default::default(),
balances: BalancesConfig {
balances: vec![
(root.clone(), BUNCH_OF_COINS),
Expand Down Expand Up @@ -206,7 +205,8 @@ pub fn genesis_config() -> ChainSpec {
.collect(),
},
grandpa: Default::default(),
// beefy: Default::default(),
beefy: Default::default(),
// beefy_gadget: Default::default(),
im_online: Default::default(),
authority_discovery: Default::default(),
democracy: Default::default(),
Expand Down Expand Up @@ -359,7 +359,6 @@ pub fn development_config() -> ChainSpec {
authorities: vec![],
epoch_config: Some(BABE_GENESIS_EPOCH_CONFIG)
},
beefy_gadget: Default::default(),
balances: BalancesConfig {
balances: endowed_accounts
.clone()
Expand Down Expand Up @@ -396,7 +395,8 @@ pub fn development_config() -> ChainSpec {
.collect(),
},
grandpa: Default::default(),
// beefy: Default::default(),
beefy: Default::default(),
// beefy_gadget: Default::default(),
im_online: Default::default(),
authority_discovery: Default::default(),
democracy: Default::default(),
Expand Down Expand Up @@ -552,7 +552,6 @@ pub fn local_testnet_config() -> ChainSpec {
authorities: vec![],
epoch_config: Some(BABE_GENESIS_EPOCH_CONFIG)
},
beefy_gadget: Default::default(),
balances: BalancesConfig {
balances: endowed_accounts
.clone()
Expand Down Expand Up @@ -589,7 +588,8 @@ pub fn local_testnet_config() -> ChainSpec {
.collect(),
},
grandpa: Default::default(),
// beefy: Default::default(),
beefy: Default::default(),
// beefy_gadget: Default::default(),
im_online: Default::default(),
authority_discovery: Default::default(),
democracy: Default::default(),
Expand Down
8 changes: 4 additions & 4 deletions node/service/src/chain_spec/pangoro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ pub fn genesis_config() -> ChainSpec {
authorities: vec![],
epoch_config: Some(BABE_GENESIS_EPOCH_CONFIG),
},
beefy_gadget: Default::default(),
balances: BalancesConfig {
balances: vec![
(root.clone(), BUNCH_OF_COINS),
Expand Down Expand Up @@ -213,7 +212,8 @@ pub fn genesis_config() -> ChainSpec {
.collect(),
},
grandpa: Default::default(),
// beefy: Default::default(),
beefy: Default::default(),
// beefy_gadget: Default::default(),
im_online: Default::default(),
authority_discovery: Default::default(),
treasury: Default::default(),
Expand Down Expand Up @@ -314,7 +314,6 @@ pub fn development_config() -> ChainSpec {
authorities: vec![],
epoch_config: Some(BABE_GENESIS_EPOCH_CONFIG),
},
beefy_gadget: Default::default(),
balances: BalancesConfig {
balances: endowed_accounts
.clone()
Expand Down Expand Up @@ -351,7 +350,8 @@ pub fn development_config() -> ChainSpec {
.collect(),
},
grandpa: Default::default(),
// beefy: Default::default(),
beefy: Default::default(),
// beefy_gadget: Default::default(),
im_online: Default::default(),
authority_discovery: Default::default(),
treasury: Default::default(),
Expand Down
2 changes: 1 addition & 1 deletion node/service/src/service/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl_runtime_apis![
sp_session::SessionKeys<Block>,
sp_consensus_babe::BabeApi<Block>,
sp_finality_grandpa::GrandpaApi<Block>,
beefy_primitives::BeefyApi<Block>,
// beefy_primitives::BeefyApi<Block>,
sp_authority_discovery::AuthorityDiscoveryApi<Block>,
sp_offchain::OffchainWorkerApi<Block>,
sp_transaction_pool::runtime_api::TaggedTransactionQueue<Block>,
Expand Down
2 changes: 2 additions & 0 deletions node/service/src/service/dvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ where
client.clone(),
substrate_backend.clone(),
dvm_backend.clone(),
3,
0,
SyncStrategy::Normal,
)
.for_each(|_| futures::future::ready(())),
Expand Down
2 changes: 1 addition & 1 deletion node/service/src/service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ where
let auth_disc_publish_non_global_ips = config.network.allow_non_globals_in_dht;

config.network.extra_sets.push(sc_finality_grandpa::grandpa_peers_set_config());
config.network.extra_sets.push(beefy_gadget::beefy_peers_set_config());
// config.network.extra_sets.push(beefy_gadget::beefy_peers_set_config());

let backoff_authoring_blocks =
Some(sc_consensus_slots::BackoffAuthoringOnFinalizedHeadLagging::default());
Expand Down

0 comments on commit 6d9406c

Please sign in to comment.