Skip to content

Commit

Permalink
revert debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ordian committed May 14, 2024
1 parent edf6ebf commit 5899108
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion polkadot/parachain/src/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub use polkadot_core_primitives::BlockNumber as RelayChainBlockNumber;
Ord,
Encode,
Decode,
Debug,
RuntimeDebug,
derive_more::From,
TypeInfo,
Serialize,
Expand Down
2 changes: 1 addition & 1 deletion polkadot/primitives/src/v7/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ impl Ord for CommittedCandidateReceipt {
/// The `PersistedValidationData` should be relatively lightweight primarily because it is
/// constructed during inclusion for each candidate and therefore lies on the critical path of
/// inclusion.
#[derive(PartialEq, Eq, Clone, Encode, Decode, TypeInfo, Debug)]
#[derive(PartialEq, Eq, Clone, Encode, Decode, TypeInfo, RuntimeDebug)]
#[cfg_attr(feature = "std", derive(Default))]
pub struct PersistedValidationData<H = Hash, N = BlockNumber> {
/// The parent head-data.
Expand Down
10 changes: 0 additions & 10 deletions polkadot/runtime/parachains/src/inclusion/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1235,11 +1235,6 @@ impl<T: Config> CandidateCheckContext<T> {
let relay_parent = backed_candidate_receipt.descriptor().relay_parent;

// Check that the relay-parent is one of the allowed relay-parents.
log::debug!(
target: LOG_TARGET,
"Checking allowed relay parent with the prev context {:?}",
self.prev_context,
);
let (relay_parent_storage_root, relay_parent_number) = {
match allowed_relay_parents.acquire_info(relay_parent, self.prev_context) {
None => return Err(Error::<T>::DisallowedRelayParent),
Expand All @@ -1254,11 +1249,6 @@ impl<T: Config> CandidateCheckContext<T> {
parent_head_data,
);

log::debug!(
target: LOG_TARGET,
"Persisted validation data {:?}",
persisted_validation_data,
);
let expected = persisted_validation_data.hash();

ensure!(
Expand Down

0 comments on commit 5899108

Please sign in to comment.