Skip to content

Commit

Permalink
ISMP inherent provider (#121)
Browse files Browse the repository at this point in the history
* ISMP inherent provider

* fmt
  • Loading branch information
Szegoo authored May 11, 2024
1 parent 6617fc8 commit e6923ee
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,23 @@ fn start_consensus(
client.clone(),
);

let (client_clone, relay_chain_interface_clone) =
(client.clone(), relay_chain_interface.clone());
let params = BasicAuraParams {
// TODO:
create_inherent_data_providers: move |_, ()| async move { Ok(()) },
create_inherent_data_providers: move |parent, ()| {
let client = client_clone.clone();
let relay_chain_interface = relay_chain_interface_clone.clone();
async move {
let inherent = ismp_parachain_inherent::ConsensusInherentProvider::create(
parent,
client,
relay_chain_interface,
)
.await?;

Ok(inherent)
}
},
block_import,
para_client: client,
relay_client: relay_chain_interface,
Expand Down

0 comments on commit e6923ee

Please sign in to comment.