Commit c4ca959
committed
Merge #6972: fix: move
3b948d2 fix: update CollectPendingSigSharesToVerify to return work status instead of a constant true (pasta)
72c3efc fix: move `more_work` calculation into CollectPendingRecoveredSigsToVerify replacing incorrect logic in ProcessPendingRecoveredSigs (pasta)
Pull request description:
## Issue being fixed or feature implemented
I believe the current "moreWork" logic in ProcessPendingRecoveredSigs is improper, and always or almost always returns false.
I believe the check `recSigsByNode.size() >= nMaxBatchSize` will only report as "needs more work" if the **number of nodes** we are verifying regSigs from is more than 32; **rather than** performing aggregation / verification on 32 recSigs.
## What was done?
Move moreWork logic into ProcessPendingRecoveredSigs
## How Has This Been Tested?
Builds
## Breaking Changes
_Please describe any breaking changes your code introduces_
## Checklist:
_Go over all the following points, and put an `x` in all the boxes that apply._
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added or updated relevant unit/integration/functional/e2e tests
- [ ] I have made corresponding changes to the documentation
- [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_
ACKs for top commit:
UdjinM6:
utACK 3b948d2
kwvg:
utACK 3b948d2
Tree-SHA512: 8fba0d0364b15af618d46d752d218a61d5c19f26d3d8d401724ad84c4cf16f85b49e5da4f8d4b4056291e17864e5d0d440e7e0cc0c18c4ab6e43258be4438d1emore_work calculation into CollectPendingRecoveredSigsToVerify replacing incorrect logic in ProcessPendingRecoveredSigs3 files changed
+27
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
| 438 | + | |
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| 443 | + | |
| 444 | + | |
443 | 445 | | |
444 | 446 | | |
445 | 447 | | |
446 | | - | |
| 448 | + | |
447 | 449 | | |
448 | 450 | | |
449 | 451 | | |
| |||
466 | 468 | | |
467 | 469 | | |
468 | 470 | | |
469 | | - | |
| 471 | + | |
470 | 472 | | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
471 | 477 | | |
472 | 478 | | |
473 | 479 | | |
| |||
500 | 506 | | |
501 | 507 | | |
502 | 508 | | |
| 509 | + | |
| 510 | + | |
503 | 511 | | |
504 | 512 | | |
505 | 513 | | |
| |||
520 | 528 | | |
521 | 529 | | |
522 | 530 | | |
523 | | - | |
| 531 | + | |
524 | 532 | | |
525 | 533 | | |
526 | 534 | | |
| |||
574 | 582 | | |
575 | 583 | | |
576 | 584 | | |
577 | | - | |
| 585 | + | |
578 | 586 | | |
579 | 587 | | |
580 | 588 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
| 571 | + | |
| 572 | + | |
571 | 573 | | |
572 | 574 | | |
573 | 575 | | |
| |||
606 | 608 | | |
607 | 609 | | |
608 | 610 | | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
609 | 618 | | |
610 | 619 | | |
611 | 620 | | |
| |||
632 | 641 | | |
633 | 642 | | |
634 | 643 | | |
635 | | - | |
| 644 | + | |
636 | 645 | | |
637 | 646 | | |
638 | 647 | | |
| |||
641 | 650 | | |
642 | 651 | | |
643 | 652 | | |
644 | | - | |
645 | | - | |
| 653 | + | |
| 654 | + | |
646 | 655 | | |
647 | 656 | | |
648 | 657 | | |
| |||
703 | 712 | | |
704 | 713 | | |
705 | 714 | | |
706 | | - | |
| 715 | + | |
707 | 716 | | |
708 | 717 | | |
709 | 718 | | |
| |||
0 commit comments