File tree 14 files changed +55
-27
lines changed
1kv-backend-staging/templates
14 files changed +55
-27
lines changed Original file line number Diff line number Diff line change @@ -123,5 +123,14 @@ spec:
123
123
"Contabo GmbH"
124
124
],
125
125
"host": "wss://telemetry-backend.w3f.community/feed"
126
+ },
127
+ "logger": {
128
+ "level": "info",
129
+ "excludedLabels": [
130
+ "Telemetry",
131
+ "Location",
132
+ "Block",
133
+ "Gateway",
134
+ ]
126
135
}
127
136
}
Original file line number Diff line number Diff line change @@ -122,5 +122,14 @@ spec:
122
122
"Contabo GmbH"
123
123
],
124
124
"host": "wss://telemetry-backend.w3f.community/feed"
125
+ },
126
+ "logger": {
127
+ "level": "info",
128
+ "excludedLabels": [
129
+ "Telemetry",
130
+ "Location",
131
+ "Block",
132
+ "Gateway",
133
+ ]
125
134
}
126
135
}
Original file line number Diff line number Diff line change 17
17
source :
18
18
repoURL : https://w3f.github.io/helm-charts/
19
19
chart : otv-backend
20
- targetRevision : v3.1.12
20
+ targetRevision : v3.1.13
21
21
plugin :
22
22
env :
23
23
- name : HELM_VALUES
@@ -121,5 +121,14 @@ spec:
121
121
],
122
122
"host": "wss://telemetry-backend.w3f.community/feed",
123
123
"ipinfoToken": "token=<path:vaults/k8s-community-secrets/items/otv-kusama#ipinfo-token>"
124
+ },
125
+ "logger": {
126
+ "level": "info",
127
+ "excludedLabels": [
128
+ "Telemetry",
129
+ "Location",
130
+ "Block",
131
+ "Gateway",
132
+ ]
124
133
}
125
134
}
Original file line number Diff line number Diff line change 17
17
source :
18
18
repoURL : https://w3f.github.io/helm-charts/
19
19
chart : otv-backend
20
- targetRevision : v3.1.12
20
+ targetRevision : v3.1.13
21
21
plugin :
22
22
env :
23
23
- name : HELM_VALUES
@@ -120,5 +120,14 @@ spec:
120
120
],
121
121
"host": "wss://telemetry-backend.w3f.community/feed",
122
122
"ipinfoToken": "token=<path:vaults/k8s-community-secrets/items/otv-polkadot#ipinfo-token>"
123
+ },
124
+ "logger": {
125
+ "level": "info",
126
+ "excludedLabels": [
127
+ "Telemetry",
128
+ "Location",
129
+ "Block",
130
+ "Gateway",
131
+ ]
123
132
}
124
133
}
Original file line number Diff line number Diff line change 1
1
description : 1K Validators Backend
2
2
name : otv-backend
3
- version : v3.1.12
4
- appVersion : v3.1.12
3
+ version : v3.1.13
4
+ appVersion : v3.1.13
5
5
apiVersion : v2
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @1kv/common" ,
3
- "version" : " 3.1.12 " ,
3
+ "version" : " 3.1.13 " ,
4
4
"description" : " Services for running the Thousand Validator Program." ,
5
5
"main" : " build/index.js" ,
6
6
"types" : " build/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ export const reportOnline = async (
505
505
await mergeTelemetryNodeToCandidate ( candidate ) ;
506
506
507
507
// Try and update or make a new Location record
508
- await fetchAndSetCandidateLocation ( telemetryNodeDetails ) ;
508
+ await fetchAndSetCandidateLocation ( candidate , telemetryNodeDetails ) ;
509
509
510
510
// Update the candidate online validity
511
511
await setCandidateOnlineValid ( candidate ) ;
Original file line number Diff line number Diff line change @@ -9,18 +9,11 @@ export const filterCandidateInvalidityFields = (
9
9
candidate : Candidate ,
10
10
filter : InvalidityReasonType ,
11
11
) : InvalidityReason [ ] => {
12
- if ( ! candidate || ! candidate ?. invalidity )
13
- throw new Error (
14
- `NO CANDIDATE DATA FOUND FOR CANDIDATE with slotId ${ candidate . slotId } ` ,
15
- ) ;
16
-
17
- const invalidityReasons = candidate ?. invalidity ?. filter (
18
- ( invalidityReason ) => {
19
- return invalidityReason . type !== filter ;
20
- } ,
12
+ return (
13
+ candidate ?. invalidity ?. filter (
14
+ ( invalidityReason ) => invalidityReason . type !== filter ,
15
+ ) || [ ]
21
16
) ;
22
-
23
- return invalidityReasons ;
24
17
} ;
25
18
26
19
export const setCandidateInvalidity = async (
Original file line number Diff line number Diff line change 1
1
import {
2
+ Candidate ,
2
3
getCandidateByName ,
4
+ getCandidateLocation ,
3
5
getIIT ,
4
- getLocation ,
5
6
removeIIT ,
6
7
setIIT ,
7
8
setLocation ,
@@ -101,13 +102,11 @@ export const nodeDetailsFromTelemetryMessage = (
101
102
} ;
102
103
103
104
export const fetchAndSetCandidateLocation = async (
105
+ candidate : Candidate ,
104
106
telemetryNodeDetails : TelemetryNodeDetails ,
105
107
) => {
106
108
// See if there's an existing location for the given telemetry data
107
- const existingLocation = await getLocation (
108
- telemetryNodeDetails . name ,
109
- telemetryNodeDetails . ipAddress ,
110
- ) ;
109
+ const existingLocation = await getCandidateLocation ( candidate . slotId ) ;
111
110
112
111
// Fetch and set a new location if:
113
112
// - There's no existing location
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @1kv/core" ,
3
- "version" : " 3.1.12 " ,
3
+ "version" : " 3.1.13 " ,
4
4
"description" : " Services for running the Thousand Validator Program." ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @1kv/gateway" ,
3
- "version" : " 3.1.12 " ,
3
+ "version" : " 3.1.13 " ,
4
4
"description" : " Services for running the Thousand Validator Program." ,
5
5
"main" : " build/index.js" ,
6
6
"types" : " build/index.d.ts" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @1kv/scorekeeper-status-ui" ,
3
3
"private" : true ,
4
- "version" : " 3.1.12 " ,
4
+ "version" : " 3.1.13 " ,
5
5
"type" : " module" ,
6
6
"scripts" : {
7
7
"dev" : " vite" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @1kv/telemetry" ,
3
- "version" : " 3.1.12 " ,
3
+ "version" : " 3.1.13 " ,
4
4
"description" : " Services for running the Thousand Validator Program." ,
5
5
"main" : " build/index.js" ,
6
6
"types" : " build/index.d.ts" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @1kv/worker" ,
3
- "version" : " 3.1.12 " ,
3
+ "version" : " 3.1.13 " ,
4
4
"description" : " Services for running the Thousand Validator Program." ,
5
5
"main" : " build/index.js" ,
6
6
"types" : " build/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments