From cdff19c7807b006dd63429114fb1d9573bf74172 Mon Sep 17 00:00:00 2001 From: Sean Young Date: Fri, 26 Jul 2024 19:22:05 +0100 Subject: [PATCH] Add tx signature to ledger-tool verify --record-slots-config=tx (#2306) --- ledger-tool/src/main.rs | 1 + runtime/src/bank/bank_hash_details.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/ledger-tool/src/main.rs b/ledger-tool/src/main.rs index c83b94641f0d89..7698852ce3e849 100644 --- a/ledger-tool/src/main.rs +++ b/ledger-tool/src/main.rs @@ -2908,6 +2908,7 @@ fn record_transactions( let execution_results = execution_results.map(|(details, _)| details); TransactionDetails { + signature: tx.signature().to_string(), accounts, instructions, is_simple_vote_tx, diff --git a/runtime/src/bank/bank_hash_details.rs b/runtime/src/bank/bank_hash_details.rs index 9f82386a4e15cd..196853c6d4d8cf 100644 --- a/runtime/src/bank/bank_hash_details.rs +++ b/runtime/src/bank/bank_hash_details.rs @@ -69,6 +69,7 @@ impl BankHashDetails { #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] pub struct TransactionDetails { + pub signature: String, pub index: usize, pub accounts: Vec, pub instructions: Vec,