Skip to content

Commit

Permalink
remove redundant loop
Browse files Browse the repository at this point in the history
  • Loading branch information
anjor committed Nov 6, 2024
1 parent ef05807 commit 5f6cd6f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions grpc-server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5f6cd6f

Please sign in to comment.