Skip to content

Commit

Permalink
Merge pull request #42 from ATOR-Development/fix-hardware-info-from-v…
Browse files Browse the repository at this point in the history
…alidation-queue

Fix for validation queue not passing hardware info from relays
  • Loading branch information
jim-toth authored Aug 1, 2024
2 parents eecb8b2 + 59100e1 commit 5a92345
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/validation/validation.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ export class ValidationService {
running: relay.running,
family: relay.effective_family,
consensus_measured: relay.consensus_measured,
primary_address_hex: relay.primary_address_hex
primary_address_hex: relay.primary_address_hex,
hardware_info: relay.hardware_info
}))
.filter((relay, index, array) => relay.ator_address.length > 0)

Expand Down Expand Up @@ -261,7 +262,8 @@ export class ValidationService {
observed_bandwidth: relayDto.observed_bandwidth,
advertised_bandwidth:
relayDto.advertised_bandwidth,
family: relayDto.effective_family
family: relayDto.effective_family,
hardware_info: relayDto.hardware_info
})
.catch(
(error) => this.logger.error('Failed creating relay data model', error.stack)
Expand Down

0 comments on commit 5a92345

Please sign in to comment.