Skip to content

Commit

Permalink
fix parachain node
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshOrndorff committed Apr 16, 2024
1 parent 3634302 commit b4ba8b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions parachain-node/src/dev_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use sc_consensus_manual_seal::consensus::aura::AuraConsensusDataProvider;
pub use sc_executor::NativeElseWasmExecutor;
use sc_service::{error::Error as ServiceError, Configuration, TaskManager};
use sc_telemetry::{Telemetry, TelemetryWorker};
use sp_runtime::traits::Header as _;
use std::{sync::Arc, time::Duration};
use tuxedo_core::{genesis::TuxedoGenesisBlockBuilder, types::OpaqueBlock as Block};

Expand Down Expand Up @@ -75,6 +76,7 @@ pub fn new_partial(
executor,
backend,
genesis_block_builder,
false,
)?;
let client = Arc::new(client);

Expand Down Expand Up @@ -196,17 +198,16 @@ pub fn new_dev(config: Configuration) -> Result<TaskManager, ServiceError> {
.block;

let mocked_parachain = {
use sp_api::{BlockT, HeaderT};

MockValidationDataInherentDataProvider {
current_para_block: parent_block.header().number() + 1,
current_para_block: parent_block.header.number() + 1,
relay_offset: 1000,
relay_blocks_per_para_block: 2,
para_blocks_per_relay_epoch: 10,
relay_randomness_config: (),
xcm_config: Default::default(),
raw_downward_messages: Default::default(),
raw_horizontal_messages: Default::default(),
additional_key_values: None,
}
};

Expand Down
1 change: 1 addition & 0 deletions parachain-node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ pub fn new_partial(
executor,
backend,
genesis_block_builder,
false,
)?;
let client = Arc::new(client);

Expand Down

0 comments on commit b4ba8b7

Please sign in to comment.