Skip to content

Commit

Permalink
Merge pull request #1906 from w3f/will-vals159
Browse files Browse the repository at this point in the history
Add More Validators Round 159
  • Loading branch information
wpank authored Aug 8, 2022
2 parents 3322f10 + abdafb3 commit f4ca2bd
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/otv-backend/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
description: 1K Validators Backend
name: otv-backend
version: v2.6.23
version: v2.6.24
apiVersion: v2
2 changes: 1 addition & 1 deletion charts/otv-backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resources:

image:
repo: web3f/otv-backend
tag: v2.6.23
tag: v2.6.24

certificate:
enabled: true
Expand Down
4 changes: 2 additions & 2 deletions helmfile.d/10-otv-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ releases:
namespace: kusama
{{ if eq .Environment.Name "production" }}
chart: w3f/otv-backend
version: v2.6.23
version: v2.6.24
{{ else }}
chart: ../charts/otv-backend
{{ end }}
Expand All @@ -27,7 +27,7 @@ releases:
namespace: polkadot
{{ if eq .Environment.Name "production" }}
chart: w3f/otv-backend
version: v2.6.23
version: v2.6.24
{{ else }}
chart: ../charts/otv-backend
{{ end }}
Expand Down
5 changes: 5 additions & 0 deletions helmfile.d/config/kusama/otv-backend-prod.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2949,6 +2949,11 @@ config: |
"name": "Chris Staking/k2",
"stash": "EAqxvPZ3nxyfum6d8DFBeGuykQayJHtE6DyCcHMyd6o57WZ",
"riotHandle": "@clang:matrix.org"
},
{
"name": "Vel_Validator",
"stash": "EaQghcv5V7uFSvj1yHgXxnhTy7y7KP7Lfgms1rvQqbwXBZN",
"riotHandle": "@vda0390:matrix.org"
}
],
"forceRound": false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "1k-validators-be",
"version": "2.6.23",
"version": "2.6.24",
"description": "Services for running the Thousand Validator Program.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { startClearAccumulatedOfflineTimeJob, startMonitorJob } from "./cron";

const isCI = process.env.CI;

const version = "v2.6.23";
const version = "v2.6.24";

const catchAndQuit = async (fn: any) => {
try {
Expand Down
5 changes: 3 additions & 2 deletions src/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,9 @@ export const unclaimedErasJob = async (

for (const candidate of candidates) {
// Set unclaimed eras
const unclaimedEras = await chaindata.getUnclaimedEras(candidate.stash, db);
await db.setUnclaimedEras(candidate.stash, unclaimedEras);
// const unclaimedEras = await chaindata.getUnclaimedEras(candidate.stash, db);
// await db.setUnclaimedEras(candidate.stash, unclaimedEras);
await db.setUnclaimedEras(candidate.stash, []); // reset unclaimed eras
await checkUnclaimed(db, chaindata, unclaimedEraThreshold, candidate);
}

Expand Down
2 changes: 1 addition & 1 deletion src/scorekeeper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ export default class ScoreKeeper {
await startActiveValidatorJob(this.config, this.db, this.chaindata);
await startInclusionJob(this.config, this.db, this.chaindata);
await startSessionKeyJob(this.config, this.db, this.chaindata);
// await startUnclaimedEraJob(this.config, this.db, this.chaindata);
await startUnclaimedEraJob(this.config, this.db, this.chaindata);
await startValidatorPrefJob(this.config, this.db, this.chaindata);
// if (this.claimer) {
// await startRewardClaimJob(
Expand Down

0 comments on commit f4ca2bd

Please sign in to comment.