Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] Add debug aura block+collation log #2192

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cumulus/client/consensus/aura/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ codec = { package = "parity-scale-codec", version = "3.0.0", features = [ "deriv
futures = "0.3.28"
tracing = "0.1.37"
schnellru = "0.2.1"
array-bytes = "6.1.0"

# Substrate
sc-client-api = { path = "../../../../substrate/client/api" }
Expand Down
11 changes: 11 additions & 0 deletions cumulus/client/consensus/aura/src/collator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,17 @@ where
block_data.storage_proof().encode().len() as f64 / 1024f64,
);

// Hacky print for debugging:
{
let block_data = block_data.using_encoded(|d| array_bytes::bytes2hex("0x", d));
let collation_data = collation.using_encoded(|d| array_bytes::bytes2hex("0x", d));

tracing::trace!(
target: "aura-collation-dump",
"SCALE encoded parachain block: {:?}, SCALE encoded collation: {:?}", block_data, collation_data,
);
}

if let MaybeCompressedPoV::Compressed(ref pov) = collation.proof_of_validity {
tracing::info!(
target: crate::LOG_TARGET,
Expand Down
Loading