Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Log para inherent inputs (#4331)
Browse files Browse the repository at this point in the history
  • Loading branch information
emostov committed Nov 19, 2021
1 parent d488955 commit 1ec4819
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions runtime/parachains/src/paras_inherent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,14 @@ pub mod pallet {
mut disputes,
} = data;

log::debug!(
target: LOG_TARGET,
"[enter] bitfields.len(): {}, backed_candidates.len(): {}, disputes.len() {}",
signed_bitfields.len(),
backed_candidates.len(),
disputes.len()
);

// Check that the submitted parent header indeed corresponds to the previous block hash.
let parent_hash = <frame_system::Pallet<T>>::parent_hash();
ensure!(
Expand Down Expand Up @@ -516,6 +524,14 @@ impl<T: Config> Pallet<T> {
},
};

log::debug!(
target: LOG_TARGET,
"[create_inherent_inner] bitfields.len(): {}, backed_candidates.len(): {}, disputes.len() {}",
bitfields.len(),
backed_candidates.len(),
disputes.len()
);

let parent_hash = <frame_system::Pallet<T>>::parent_hash();

if parent_hash != parent_header.hash() {
Expand Down

0 comments on commit 1ec4819

Please sign in to comment.