Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jasl committed Jun 27, 2023
1 parent a08e542 commit 5c28b2a
Show file tree
Hide file tree
Showing 8 changed files with 1,556 additions and 1,214 deletions.
1,629 changes: 907 additions & 722 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
channel = "1.69.0"
channel = "1.70.0"
components = [
"cargo",
"clippy",
Expand Down
2 changes: 1 addition & 1 deletion standalone/headers-cache/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ chrono = { version = "0.4.22" }
env_logger = "0.9.0"
rocket = "0.5.0-rc.3"
scale = { package = 'parity-scale-codec', version = "3.3" }
rocksdb = { version = "0.20.1", default-features = false, features = ["snappy", "jemalloc"] } # aligned with kvdb-rocksdb
rocksdb = { version = "0.21.0", default-features = false, features = ["snappy", "jemalloc"] } # aligned with kvdb-rocksdb
serde = { version = "1", features = ["derive"] }
serde_json = "1"
phala-rocket-middleware = { path = "../../crates/phala-rocket-middleware" }
Expand Down
7 changes: 6 additions & 1 deletion standalone/node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ pub struct NewFullBase {

/// Creates a full service from the configuration.
pub fn new_full_base(
mut config: Configuration,
config: Configuration,
disable_hardware_benchmarks: bool,
with_startup_data: impl FnOnce(
&sc_consensus_babe::BabeBlockImport<Block, FullClient, FullGrandpaBlockImport>,
Expand Down Expand Up @@ -354,6 +354,7 @@ pub fn new_full_base(

let shared_voter_state = rpc_setup;
let auth_disc_publish_non_global_ips = config.network.allow_non_globals_in_dht;
let mut net_config = sc_network::config::FullNetworkConfiguration::new(&config.network);
let grandpa_protocol_name = grandpa::protocol_standard_name(
&client
.block_hash(0)
Expand All @@ -362,6 +363,9 @@ pub fn new_full_base(
.expect("Genesis block exists; qed"),
&config.chain_spec,
);
net_config.add_notification_protocol(grandpa::grandpa_peers_set_config(
grandpa_protocol_name.clone(),
));

config
.network
Expand All @@ -378,6 +382,7 @@ pub fn new_full_base(
let (network, system_rpc_tx, tx_handler_controller, network_starter, sync_service) =
sc_service::build_network(sc_service::BuildNetworkParams {
config: &config,
net_config,
client: client.clone(),
transaction_pool: transaction_pool.clone(),
spawn_handle: task_manager.spawn_handle(),
Expand Down
Loading

0 comments on commit 5c28b2a

Please sign in to comment.