From b19f073052b8980592e39208c9d15def1635744c 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 e4e3f7e78..082008d06 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 b2b20989086fb69b4efe4042c0c9bb7f1193b545 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 082008d06..6d33b09ea 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;