Commit b199d39
authored
Merge pull request #3303 from keep-network/chaosnet-client
Chaosnet support in the client
After adding chaosnet support to the sortition pool, we need to modify the
client to check the chaosnet state before attempting to join the sortition pool.
BetaOperatorPolicy is a JoinPolicy implementation checking chaosnet and beta
operator status. If chaosnet has been deactivated, the operator is allowed to
join the pool. If chaosnet is active and the operator is beta operator,
the operator is allowed to join the pool. If chaosnet is active and the operator
is not beta operator, the operator is not allowed to join the pool.
The BetaOperatorPolicy is applied both to the random beacon and tbtc.File tree
16 files changed
+3996
-83
lines changed- pkg
- beacon
- chain
- ethereum
- beacon/gen
- abi
- cmd
- contract
- ecdsa/gen
- abi
- cmd
- contract
- local_v1
- sortition
- internal/local
- tbtc
16 files changed
+3996
-83
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
233 | 244 | | |
234 | 245 | | |
235 | 246 | | |
| |||
281 | 292 | | |
282 | 293 | | |
283 | 294 | | |
284 | | - | |
285 | | - | |
| 295 | + | |
| 296 | + | |
286 | 297 | | |
287 | 298 | | |
288 | 299 | | |
289 | 300 | | |
290 | 301 | | |
291 | 302 | | |
292 | 303 | | |
293 | | - | |
294 | | - | |
| 304 | + | |
| 305 | + | |
295 | 306 | | |
296 | 307 | | |
297 | 308 | | |
| |||
305 | 316 | | |
306 | 317 | | |
307 | 318 | | |
308 | | - | |
309 | | - | |
310 | | - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
311 | 322 | | |
312 | 323 | | |
313 | 324 | | |
| |||
422 | 433 | | |
423 | 434 | | |
424 | 435 | | |
425 | | - | |
| 436 | + | |
426 | 437 | | |
427 | 438 | | |
428 | 439 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 225 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments