From 5f6cd6fa47315db2d145cee34dc8e0d03cc3788d Mon Sep 17 00:00:00 2001 From: anjor Date: Wed, 6 Nov 2024 11:18:24 +0000 Subject: [PATCH] remove redundant loop --- grpc-server.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/grpc-server.go b/grpc-server.go index 989b3278..b4e2a165 100644 --- a/grpc-server.go +++ b/grpc-server.go @@ -692,20 +692,6 @@ func blockContainsAccounts(block *old_faithful_grpc.BlockResponse, accounts []st } } - for _, inst := range solTx.Message.Instructions { - programId := solTx.Message.AccountKeys[inst.ProgramIDIndex] - if _, exists := accountSet[programId.String()]; exists { - return true - } - - for _, accIdx := range inst.Accounts { - if _, exists := accountSet[string(solTx.Message.AccountKeys[accIdx].String())]; exists { - return true - } - - } - } - } return false