Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 5c8700b

Browse files
authored
Merge pull request #2804 from w3f/staging
v3.1.11 Staging -> Master
2 parents 7ef8cea + 19215f7 commit 5c8700b

File tree

11 files changed

+25
-24
lines changed

11 files changed

+25
-24
lines changed

apps/1kv-backend/templates/kusama-otv-backend.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
source:
1818
repoURL: https://w3f.github.io/helm-charts/
1919
chart: otv-backend
20-
targetRevision: v3.1.10
20+
targetRevision: v3.1.11
2121
plugin:
2222
env:
2323
- name: HELM_VALUES

apps/1kv-backend/templates/polkadot-otv-backend.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
source:
1818
repoURL: https://w3f.github.io/helm-charts/
1919
chart: otv-backend
20-
targetRevision: v3.1.10
20+
targetRevision: v3.1.11
2121
plugin:
2222
env:
2323
- name: HELM_VALUES

charts/otv-backend/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
description: 1K Validators Backend
22
name: otv-backend
3-
version: v3.1.10
4-
appVersion: v3.1.10
3+
version: v3.1.11
4+
appVersion: v3.1.11
55
apiVersion: v2

packages/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@1kv/common",
3-
"version": "3.1.9",
3+
"version": "3.1.11",
44
"description": "Services for running the Thousand Validator Program.",
55
"main": "build/index.js",
66
"types": "build/index.d.ts",

packages/common/src/chaindata/chaindata.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ export const handleError = async (chaindata, e, functionName: string) => {
371371
} else {
372372
logger.error(`Error in ${functionName}: ${errorMessage}`, chaindataLabel);
373373
}
374+
throw new Error("Error in ChainData");
374375
};
375376

376377
export default ChainData;

packages/common/src/constraints/ValidityChecks.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const checkOnline = async (candidate: any): Promise<boolean> => {
3535
return true;
3636
} catch (e) {
3737
logger.error(`Error checking online status: ${e}`, constraintsLabel);
38-
return false;
38+
throw new Error("could not make validity check");
3939
}
4040
};
4141

@@ -59,7 +59,7 @@ export const checkValidateIntention = async (
5959
return false;
6060
} catch (e) {
6161
logger.error(`Error checking validate intention: ${e}`, constraintsLabel);
62-
return false;
62+
throw new Error("could not make validity check");
6363
}
6464
};
6565

@@ -81,7 +81,7 @@ export const checkAllValidateIntentions = async (
8181
return true;
8282
} catch (e) {
8383
logger.error(`Error checking validate intentions: ${e}`, constraintsLabel);
84-
return false;
84+
throw new Error("could not make validity check");
8585
}
8686
};
8787

@@ -172,7 +172,7 @@ export const checkLatestClientVersion = async (
172172
constraintsLabel,
173173
);
174174
await setLatestClientReleaseValidity(candidate.stash, false);
175-
return false;
175+
throw new Error("could not make validity check");
176176
}
177177
};
178178

@@ -196,7 +196,7 @@ export const checkConnectionTime = async (
196196
}
197197
} catch (e) {
198198
logger.error(`Error checking connection time: ${e}`, constraintsLabel);
199-
return false;
199+
throw new Error("could not make validity check");
200200
}
201201
};
202202

@@ -222,7 +222,7 @@ export const checkIdentity = async (
222222
return true;
223223
} catch (e) {
224224
logger.error(`Error checking identity: ${e}`, constraintsLabel);
225-
return false;
225+
throw new Error("could not make validity check");
226226
}
227227
};
228228

@@ -239,7 +239,7 @@ export const checkOffline = async (candidate: Candidate): Promise<boolean> => {
239239
return true;
240240
} catch (e) {
241241
logger.error(`Error checking offline: ${e}`, constraintsLabel);
242-
return false;
242+
throw new Error("could not make validity check");
243243
}
244244
};
245245
export const checkCommission = async (
@@ -267,7 +267,7 @@ export const checkCommission = async (
267267
}
268268
} catch (e) {
269269
logger.error(`Error checking commission: ${e}`, constraintsLabel);
270-
return false;
270+
throw new Error("could not make validity check");
271271
}
272272
};
273273

@@ -301,7 +301,7 @@ export const checkSelfStake = async (
301301
return true;
302302
} catch (e) {
303303
logger.error(`Error checking self stake: ${e}`, constraintsLabel);
304-
return false;
304+
throw new Error("could not make validity check");
305305
}
306306
};
307307

@@ -329,7 +329,7 @@ export const checkUnclaimed = async (
329329
}
330330
} catch (e) {
331331
logger.error(`Error checking unclaimed: ${e}`, constraintsLabel);
332-
return false;
332+
throw new Error("could not make validity check");
333333
}
334334
};
335335

@@ -350,7 +350,7 @@ export const checkBlocked = async (
350350
}
351351
} catch (e) {
352352
logger.error(`Error checking blocked: ${e}`, constraintsLabel);
353-
return false;
353+
throw new Error("could not make validity check");
354354
}
355355
};
356356

@@ -386,7 +386,7 @@ export const checkProvider = async (
386386
}
387387
} catch (e) {
388388
logger.error(`Error checking provider: ${e}`, constraintsLabel);
389-
return false;
389+
throw new Error("could not make validity check");
390390
}
391391
};
392392

@@ -415,7 +415,7 @@ export const checkKusamaRank = async (
415415
return true;
416416
} catch (e) {
417417
logger.warn(`Error trying to get kusama data...`);
418-
return true;
418+
throw new Error("could not make validity check");
419419
}
420420
};
421421

@@ -434,6 +434,6 @@ export const checkBeefyKeys = async (
434434
}
435435
} catch (e) {
436436
logger.warn(`Error trying to get beefy keys...`, constraintsLabel);
437-
return false;
437+
throw new Error("could not make validity check");
438438
}
439439
};

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@1kv/core",
3-
"version": "3.1.10",
3+
"version": "3.1.11",
44
"description": "Services for running the Thousand Validator Program.",
55
"main": "index.js",
66
"scripts": {

packages/gateway/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@1kv/gateway",
3-
"version": "3.1.10",
3+
"version": "3.1.11",
44
"description": "Services for running the Thousand Validator Program.",
55
"main": "build/index.js",
66
"types": "build/index.d.ts",

packages/scorekeeper-status-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@1kv/scorekeeper-status-ui",
33
"private": true,
4-
"version": "3.1.10",
4+
"version": "3.1.11",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

packages/telemetry/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@1kv/telemetry",
3-
"version": "3.1.10",
3+
"version": "3.1.11",
44
"description": "Services for running the Thousand Validator Program.",
55
"main": "build/index.js",
66
"types": "build/index.d.ts",

0 commit comments

Comments
 (0)