Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
librelois committed May 13, 2024
1 parent 0681792 commit f3bab06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cumulus/client/parachain-inherent/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ impl<R: Send + Sync + GenerateRandomness<u64>> InherentDataProvider
// Use the "sproof" (spoof proof) builder to build valid mock state root and proof.
let mut sproof_builder =
RelayStateSproofBuilder { para_id: self.xcm_config.para_id, ..Default::default() };


// Calculate the mocked relay block based on the current para block
let relay_parent_number =
self.relay_offset + self.relay_blocks_per_para_block * self.current_para_block;
sproof_builder.current_slot = (relay_parent_number as u64).into() / RELAY_CHAIN_SLOT_DURATION_MILLIS;
sproof_builder.current_slot =
(relay_parent_number as u64).into() / RELAY_CHAIN_SLOT_DURATION_MILLIS;

// Process the downward messages and set up the correct head
let mut downward_messages = Vec::new();
Expand Down

0 comments on commit f3bab06

Please sign in to comment.