From 02147439bdeca5666b7f4985a186e30cca565590 Mon Sep 17 00:00:00 2001 From: Andrei Silviu Dragnea Date: Tue, 14 May 2024 22:01:40 +0300 Subject: [PATCH] ledger-tool: Add --enable-extended-tx-metadata-storage arg (#1344) --- ledger-tool/src/ledger_utils.rs | 2 +- ledger-tool/src/main.rs | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ledger-tool/src/ledger_utils.rs b/ledger-tool/src/ledger_utils.rs index c05cc6c2d64cd0..31a91a0d161b48 100644 --- a/ledger-tool/src/ledger_utils.rs +++ b/ledger-tool/src/ledger_utils.rs @@ -377,7 +377,7 @@ pub fn load_and_process_ledger( enable_rpc_transaction_history, transaction_notifier, tss_blockstore, - false, + arg_matches.is_present("enable_extended_tx_metadata_storage"), exit.clone(), ); ( diff --git a/ledger-tool/src/main.rs b/ledger-tool/src/main.rs index adda2e4b937359..b17b3cb9f265e6 100644 --- a/ledger-tool/src/main.rs +++ b/ledger-tool/src/main.rs @@ -987,6 +987,16 @@ fn main() { .takes_value(false) .help("Store transaction info for processed slots into local ledger"), ) + .arg( + Arg::with_name("enable_extended_tx_metadata_storage") + .long("enable-extended-tx-metadata-storage") + .requires("enable_rpc_transaction_history") + .takes_value(false) + .help( + "Include CPI inner instructions, logs, and return data in the historical \ + transaction info stored", + ), + ) .arg( Arg::with_name("run_final_hash_calc") .long("run-final-accounts-hash-calculation")