Skip to content

Commit

Permalink
Reduce distribution scope
Browse files Browse the repository at this point in the history
  • Loading branch information
kanshi committed Sep 11, 2024
1 parent 5ca4143 commit d479ec3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tasks/tasks.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export class TasksService implements OnApplicationBootstrap {
} else this.createServiceState()

this.logger.log(
`Bootstrapped Tasks Service [id: ${this.dataId}, isValidating: ${this.state.isValidating}]`,
`Bootstrapped Tasks Service [id: ${this.dataId}, isValidating: ${this.state.isValidating}, isCheckingBalances: ${this.state.isCheckingBalances}]`,
)

if (this.doClean != 'true') {
Expand Down
7 changes: 6 additions & 1 deletion src/verification/verification.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,12 @@ export class VerificationService {
.create<VerificationData>(verificationData)
.catch((error) => this.logger.error(error))

return verificationData
// We want to filter to ones only verified, as it is assumed by the distribution flow to process only verified relays
const onlyVerifiedRelays = verifiedRelays
.filter((value) => value.result == 'AlreadyVerified')
.map((result) => result.relay)

return { ...verificationData, relays: onlyVerifiedRelays }
}

public async getMostRecent(): Promise<VerificationData | null> {
Expand Down

0 comments on commit d479ec3

Please sign in to comment.