From 46f5aaaf997175530788f8b8746be8f32027ae82 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Tue, 1 Jul 2025 13:55:43 +0800 Subject: [PATCH] rpc: remove shh and bzz --- rpc/client.go | 6 ------ rpc/subscription_test.go | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/rpc/client.go b/rpc/client.go index f9a8f1116b..ba7e43eb5c 100644 --- a/rpc/client.go +++ b/rpc/client.go @@ -487,12 +487,6 @@ func (c *Client) EthSubscribe(ctx context.Context, channel interface{}, args ... return c.Subscribe(ctx, "eth", channel, args...) } -// ShhSubscribe registers a subscription under the "shh" namespace. -// Deprecated: use Subscribe(ctx, "shh", ...). -func (c *Client) ShhSubscribe(ctx context.Context, channel interface{}, args ...interface{}) (*ClientSubscription, error) { - return c.Subscribe(ctx, "shh", channel, args...) -} - // Subscribe calls the "_subscribe" method with the given arguments, // registering a subscription. Server notifications for the subscription are // sent to the given channel. The element type of the channel must match the diff --git a/rpc/subscription_test.go b/rpc/subscription_test.go index e52f390adb..cd44d219de 100644 --- a/rpc/subscription_test.go +++ b/rpc/subscription_test.go @@ -59,7 +59,7 @@ func TestSubscriptions(t *testing.T) { t.Parallel() var ( - namespaces = []string{"eth", "bzz"} + namespaces = []string{"eth"} service = ¬ificationTestService{} subCount = len(namespaces) notificationCount = 3