Skip to content

Commit

Permalink
contains accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
anjor committed Nov 5, 2024
1 parent 4e6ee27 commit 0af7f33
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions grpc-server.go
Original file line number Diff line number Diff line change
Expand Up @@ -668,19 +668,5 @@ func (multi *MultiEpoch) StreamBlocks(params *old_faithful_grpc.StreamBlocksRequ
}

func blockContainsAccounts(block *old_faithful_grpc.BlockResponse, accounts []string) bool {
accountSet := make(map[string]struct{}, len(accounts))
for _, acc := range accounts {
accountSet[acc] = struct{}{}
}

for _, tx := range block.Transactions {
for _, acc := range tx.Transation.Message.AccountKeys {
if _, exists := accountSet[string(acc)]; exists {
return true
}
}

}

return false
return true // to do
}

0 comments on commit 0af7f33

Please sign in to comment.