From 50d746cdb5e4a9db40a1d92715acd3231e052587 Mon Sep 17 00:00:00 2001 From: diman Date: Tue, 3 Dec 2024 12:13:27 +0400 Subject: [PATCH 1/2] add bank hash to frozen slot update --- .../rpc-subscriptions-api/src/slots-updates-notifications.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/rpc-subscriptions-api/src/slots-updates-notifications.ts b/packages/rpc-subscriptions-api/src/slots-updates-notifications.ts index e4e3f7e78740..082008d06b0e 100644 --- a/packages/rpc-subscriptions-api/src/slots-updates-notifications.ts +++ b/packages/rpc-subscriptions-api/src/slots-updates-notifications.ts @@ -25,6 +25,7 @@ type SlotsUpdatesNotificationsApiNotificationFrozen = Readonly<{ numSuccessfulTransactions: bigint; numTransactionEntries: bigint; }>; + hash?: string; type: 'frozen'; }> & SlotsUpdatesNotificationsApiNotificationBase; From c3d9ca36f11bd2aa82eed00c389e1e576f73c2f3 Mon Sep 17 00:00:00 2001 From: diman Date: Fri, 6 Dec 2024 15:34:15 +0400 Subject: [PATCH 2/2] fix: interface keys must to be in ascending order --- .../rpc-subscriptions-api/src/slots-updates-notifications.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rpc-subscriptions-api/src/slots-updates-notifications.ts b/packages/rpc-subscriptions-api/src/slots-updates-notifications.ts index 082008d06b0e..6d33b09ea033 100644 --- a/packages/rpc-subscriptions-api/src/slots-updates-notifications.ts +++ b/packages/rpc-subscriptions-api/src/slots-updates-notifications.ts @@ -19,13 +19,13 @@ type SlotsUpdatesNotificationsApiNotificationDead = Readonly<{ SlotsUpdatesNotificationsApiNotificationBase; type SlotsUpdatesNotificationsApiNotificationFrozen = Readonly<{ + hash?: string; stats: Readonly<{ maxTransactionsPerEntry: bigint; numFailedTransactions: bigint; numSuccessfulTransactions: bigint; numTransactionEntries: bigint; }>; - hash?: string; type: 'frozen'; }> & SlotsUpdatesNotificationsApiNotificationBase;