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

Text-dump banking trace files #35385

Closed
wants to merge 1 commit into from

Conversation

ryoqun
Copy link
Member

@ryoqun ryoqun commented Mar 1, 2024

Problem

Summary of Changes

dump banking trace file in dirtiest way

how to use:

cat ./path/to/banking_trace/events.11 | ./solana-ledger-tool shred-version | less

cc: @apfitzge (i need to look at https://github.com/apfitzge/banking-trace-tool)
@jstarry here it is, as requested.

let st = solana_core::banking_stage::packet_deserializer::PacketDeserializer::deserialize_and_collect_packets(0, &[batch.clone()], false).deserialized_packets.iter().filter_map(|ip| ip.build_sanitized_transaction(&Arc::new(FeatureSet::all_enabled()), false, A)).collect::<Vec<_>>();
let st_label = format!("({:#?})", st);
for transaction in st {
solana_cli_output::display::println_transaction(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this didn't decode instruction data for loaders like this. i wonder there's better way...

@apfitzge
Copy link
Contributor

apfitzge commented Mar 1, 2024

I think the annoying aspect of these trace-files is ALTs, which tend to be something you and I keep having to discuss 😉 . I mainly separated out banking-trace-tool because the retrieval of ALTs is inconsistent and flaky...yet I needed them resolved to best of ability for my usecase.

@willhickey
Copy link
Contributor

This repository is no longer in use. Please re-open this pull request in the agave repo: https://github.com/anza-xyz/agave

@willhickey willhickey closed this Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants