Skip to content

Commit

Permalink
WIP:
Browse files Browse the repository at this point in the history
  • Loading branch information
dkuanyshbaev committed Nov 27, 2024
1 parent ef10985 commit 4828edf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 23 deletions.
27 changes: 12 additions & 15 deletions node/service/src/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use sc_consensus_grandpa::{
GrandpaBlockImport, GrandpaParams, LinkHalf, SharedVoterState, VotingRulesBuilder,
};
use sc_executor::{HeapAllocStrategy, WasmExecutor, DEFAULT_HEAP_ALLOC_STRATEGY};
use sc_network::NetworkService;
use sc_network::{service::traits::NetworkBackend, NetworkService};
use sc_service::{config::Configuration, error::Error as ServiceError, TaskManager};
use sc_transaction_pool_api::OffchainTransactionPoolFactory;
use sp_api::{CallApiAt, ConstructRuntimeApi};
Expand Down Expand Up @@ -284,20 +284,17 @@ where
.expect("Genesis block exists; qed"),
&config.chain_spec,
);
// let metrics = Network::register_notification_metrics(
// config.prometheus_config.as_ref().map(|cfg| &cfg.registry),
// );
// let peer_store_handle = net_config.peer_store_handle();
// let (grandpa_protocol_config, grandpa_notification_service) =
// sc_consensus_grandpa::grandpa_peers_set_config(
// grandpa_protocol_name.clone(),
// metrics.clone(),
// Arc::clone(&peer_store_handle),
// );
// net_config.add_notification_protocol(grandpa_protocol_config);
net_config.add_notification_protocol(sc_consensus_grandpa::grandpa_peers_set_config(
grandpa_protocol_name.clone(),
));
let metrics = NetworkBackend::register_notification_metrics(
config.prometheus_config.as_ref().map(|cfg| &cfg.registry),
);
let peer_store_handle = net_config.peer_store_handle();
let (grandpa_protocol_config, grandpa_notification_service) =
sc_consensus_grandpa::grandpa_peers_set_config(
grandpa_protocol_name.clone(),
metrics.clone(),
Arc::clone(&peer_store_handle),
);
net_config.add_notification_protocol(grandpa_protocol_config);

let warp_sync = Arc::new(sc_consensus_grandpa::warp_proof::NetworkProvider::new(
backend.clone(),
Expand Down
16 changes: 8 additions & 8 deletions runtime/dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,14 +424,14 @@ impl pallet_preimage::Config for Runtime {
type Currency = Balances;
type ManagerOrigin = EnsureRoot<AccountId>;
//type Consideration = HoldConsideration<
//AccountId,
//Balances,
//PreimageHoldReason,
//LinearStoragePrice<
//dynamic_params::storage::BaseDeposit,
//dynamic_params::storage::ByteDeposit,
//Balance,
//>,
//AccountId,
//Balances,
//PreimageHoldReason,
//LinearStoragePrice<
//dynamic_params::storage::BaseDeposit,
//dynamic_params::storage::ByteDeposit,
//Balance,
//>,
//>;
}

Expand Down

0 comments on commit 4828edf

Please sign in to comment.