Skip to content

Commit

Permalink
Decrease validation pace to 2 hrs, increase warp delays, decrease bat…
Browse files Browse the repository at this point in the history
…ch size of scores to 7
  • Loading branch information
kanshi committed Sep 23, 2024
1 parent 573e780 commit 5f28a4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/distribution/distribution.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class DistributionService {
private isLive?: string
private operator

private static readonly scoresPerBatch = 8
private static readonly scoresPerBatch = 7
public static readonly maxDistributionRetries = 6
private static readonly familiesPerBatch = 4
private static readonly fingerprintsPerBatch = 50
Expand Down Expand Up @@ -238,7 +238,7 @@ export class DistributionService {
if (this.operator != undefined) {
if (this.isLive === 'true') {
try {
await setTimeout(5000)
await setTimeout(10000)
const response = await this.distributionContract
.writeInteraction<AddScores>({
function: 'addScores',
Expand Down Expand Up @@ -286,7 +286,7 @@ export class DistributionService {
}

try {
await setTimeout(5000)
await setTimeout(10000)
const response = await this.distributionContract
.writeInteraction<Distribute>({
function: 'distribute',
Expand Down Expand Up @@ -576,7 +576,7 @@ export class DistributionService {
)

for (const familyBatch of familyBatches) {
await setTimeout(5000)
await setTimeout(10000)
this.logger.debug(
`Starting to set relay families for ${familyBatch.length} relays`,
)
Expand Down Expand Up @@ -655,7 +655,7 @@ export class DistributionService {
)

for (const batch of batches) {
await setTimeout(5000)
await setTimeout(10000)
this.logger.debug(
`Starting to set hardware bonus relays for ${batch.length} relays [${batch}]`
)
Expand Down Expand Up @@ -705,7 +705,7 @@ export class DistributionService {
this.logger.log(
`Sleeping before writing relay uptimes to distribution contract`
)
await setTimeout(5000)
await setTimeout(10000)
const fingerprints = uptimes.map(r => r.fingerprint)
this.logger.log(
`Setting uptimes for ${uptimes.length} relays [${fingerprints}]`
Expand Down
2 changes: 1 addition & 1 deletion src/tasks/tasks.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export class TasksService implements OnApplicationBootstrap {
}

public async queueValidateRelays(
delayJob: number = 1000 * 60 * 60
delayJob: number = 1000 * 60 * 60 * 2
): Promise<void> {
if (!this.state.isValidating) {
this.state.isValidating = true
Expand Down

0 comments on commit 5f28a4f

Please sign in to comment.