Skip to content

Commit

Permalink
Add a TODO_TECHDEBT: getting apps delegating to a gateway (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
adshmh authored Aug 29, 2024
1 parent b7f3843 commit 30d71ae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions application.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ func (ac *ApplicationClient) GetApplication(
return res.Application, nil
}

// TODO_TECHDEBT: Use a more efficient logic based on a filtering query of onchain applications,
// once the following enhancement on poktroll is implemented:
// https://github.com/pokt-network/poktroll/issues/767
//
// This is an inefficient implementation, as there can be a very large number
// of onchain applications, only a few of which are likely to be delegating to a specific gateway.
// But this can only be fixed once the above proposed enhancement on poktroll is completed.
//
// GetApplicationsDelegatingToGateway returns the application addresses that are
// delegating to the given gateway address.
func (ac *ApplicationClient) GetApplicationsDelegatingToGateway(
Expand Down

0 comments on commit 30d71ae

Please sign in to comment.