Commit 90cc240
feat: finality based on weight (#1183)
* first commit
* first commit
* first commit
* adjusting threshold, iteration
* adjusting threshold, iteration
* adjusting threshold, iteration
* refactor so it is all weight
* refactor so it is all weight
* changes after call
* added backwards compatibility
* added backwards compatibility
* added backwards compatibility
* added backwards compatibility
* reverted tests
* tests fixed
* assuming finality after the transition period
* fixed boundaries
* minor change
* tests started
* more changes
* added rest of the test
* refactor
* refactor
* refactor, testgetvote not passing yet
* refactor, testgetvote not passing yet
* refactor, testgetvote not passing yet
* refactor, testgetvote not passing yet
* refactor, testgetvote not passing yet
* fixed all tests
* testjustifier, not passing yet
* testjustifier, not passing yet
* testjustifier, not passing yet
* testjustifier, not passing yet
* testjustifier, not passing yet
* testjustifier, not passing yet
* testjustifier tests passing
* all tests passing
* all tests passing
* all tests passing
* small refactor
* small refactor
* modified addvalidator since now it has less params
* renaming so it matches with the existing attributes
* renaming so it matches with the existing attributes
* replace lookupNode with Get
* using isposactive
* using isposactive
* using isposactive
* using isposactive
---------
Co-authored-by: paologalligit <paolo.galli@vechain.org>1 parent 5616eea commit 90cc240
4 files changed
Lines changed: 562 additions & 196 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
305 | 306 | | |
306 | 307 | | |
307 | 308 | | |
308 | | - | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
321 | 346 | | |
322 | 347 | | |
323 | 348 | | |
324 | 349 | | |
325 | 350 | | |
326 | | - | |
327 | | - | |
328 | | - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
329 | 356 | | |
330 | | - | |
| 357 | + | |
| 358 | + | |
331 | 359 | | |
332 | 360 | | |
333 | 361 | | |
| |||
388 | 416 | | |
389 | 417 | | |
390 | 418 | | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
391 | 436 | | |
392 | 437 | | |
393 | 438 | | |
| |||
398 | 443 | | |
399 | 444 | | |
400 | 445 | | |
401 | | - | |
402 | 446 | | |
403 | 447 | | |
404 | 448 | | |
| |||
0 commit comments