Skip to content

Commit

Permalink
companion: Build relay block after onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
cdamian committed Nov 1, 2023
1 parent c6ee97c commit 55e522d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/src/builder/companion/src/expand/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,13 @@ pub fn expand(def: CompanionDef) -> SynResult<TokenStream> {

)*

{
__hidden_tracing::enter_span!(sp_tracing::Level::TRACE, std::stringify!(#relay_chain_name - BlockBuilding:));

self.#relay_chain_name.build_block().map_err(|e| BuilderError::Relaychain(e.into())).map(|_| ())?;
self.#relay_chain_name.import_block().map_err(|e| BuilderError::Relaychain(e.into())).map(|_| ())?;
}

Ok(companion)
}

Expand Down

0 comments on commit 55e522d

Please sign in to comment.