From 03ed9137ab559c0ae95df9092a83fe5dddc0b029 Mon Sep 17 00:00:00 2001 From: diman Date: Tue, 3 Dec 2024 11:33:11 +0400 Subject: [PATCH 1/2] add bank hash to frozen slot update --- rpc-client-api/src/response.rs | 1 + rpc/src/optimistically_confirmed_bank_tracker.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/rpc-client-api/src/response.rs b/rpc-client-api/src/response.rs index 604ba111023a6b..97a958f88a1bac 100644 --- a/rpc-client-api/src/response.rs +++ b/rpc-client-api/src/response.rs @@ -202,6 +202,7 @@ pub enum SlotUpdate { slot: Slot, timestamp: u64, stats: SlotTransactionStats, + hash: String, }, Dead { slot: Slot, diff --git a/rpc/src/optimistically_confirmed_bank_tracker.rs b/rpc/src/optimistically_confirmed_bank_tracker.rs index 608b0b27071a84..a52418a2e4ccb9 100644 --- a/rpc/src/optimistically_confirmed_bank_tracker.rs +++ b/rpc/src/optimistically_confirmed_bank_tracker.rs @@ -333,6 +333,7 @@ impl OptimisticallyConfirmedBankTracker { num_failed_transactions: bank.transaction_error_count(), max_transactions_per_entry: bank.transactions_per_entry_max(), }, + hash: bank.hash().to_string(), }); Self::notify_slot_status( From e9dae0bf73c6229691a148f8395da20377666ef9 Mon Sep 17 00:00:00 2001 From: diman Date: Wed, 8 Jan 2025 19:44:49 +0400 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A4=A6=E2=80=8D=E2=99=80=EF=B8=8F?= =?UTF-8?q?=F0=9F=A4=A6=E2=80=8D=E2=99=80=EF=B8=8F=F0=9F=A4=A6=E2=80=8D?= =?UTF-8?q?=E2=99=80=EF=B8=8F=F0=9F=A4=A6=E2=80=8D=E2=99=80=EF=B8=8F?= =?UTF-8?q?=F0=9F=A4=A6=E2=80=8D=E2=99=80=EF=B8=8F=F0=9F=A4=A6=E2=80=8D?= =?UTF-8?q?=E2=99=80=EF=B8=8F=F0=9F=A4=A6=E2=80=8D=E2=99=80=EF=B8=8F?= =?UTF-8?q?=F0=9F=A4=A6=E2=80=8D=E2=99=80=EF=B8=8F=F0=9F=A4=A6=E2=80=8D?= =?UTF-8?q?=E2=99=80=EF=B8=8F=F0=9F=A4=A6=E2=80=8D=E2=99=80=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rpc/src/optimistically_confirmed_bank_tracker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/src/optimistically_confirmed_bank_tracker.rs b/rpc/src/optimistically_confirmed_bank_tracker.rs index a52418a2e4ccb9..3d32bace484ac4 100644 --- a/rpc/src/optimistically_confirmed_bank_tracker.rs +++ b/rpc/src/optimistically_confirmed_bank_tracker.rs @@ -333,7 +333,7 @@ impl OptimisticallyConfirmedBankTracker { num_failed_transactions: bank.transaction_error_count(), max_transactions_per_entry: bank.transactions_per_entry_max(), }, - hash: bank.hash().to_string(), + hash: bank.last_blockhash().to_string(), }); Self::notify_slot_status(