Skip to content

Commit

Permalink
Merge pull request #58 from ATOR-Development/filter-dummy-hw-addresse…
Browse files Browse the repository at this point in the history
…s-out-from-verification

Filter out relays with dummy eth addr from initial hw configs
  • Loading branch information
jim-toth committed Aug 20, 2024
2 parents 8b3e685 + 260b890 commit 8606429
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/verification/verification.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,15 @@ export class VerificationService {
`${relay.fingerprint}|${relay.ator_address} IS_LIVE: ${this.isLive} Claimable: ${isAlreadyClaimable} Verified: ${isAlreadyVerified}`,
)

if (isAlreadyClaimable) {
if (
relay.ator_address ===
'0xFFfFfFffFFfffFFfFFfFFFFFffFFFffffFfFFFfF'
) {
this.logger.log(
`Failing relay ${relay.fingerprint} with dummy address ${relay.ator_address}`
)
results.push({ relay, result: 'Failed' })
} else if (isAlreadyClaimable) {
this.logger.debug(
`Already registered (can be claimed) relay [${relay.fingerprint}]`,
)
Expand Down

0 comments on commit 8606429

Please sign in to comment.