Commit ca08a44
committed
fix: prevent 1010 duplicate commit errors after validator restart
- Init last_weight_submission_epoch to current epoch at boot (not 0)
so we don't re-submit for an epoch we may have already committed to
- Remove first_block_seen CommitWindowOpen (caused immediate duplicate)
- Disable startup weight timer (redundant with PhaseChange handler)
- Weights now submit cleanly at the next epoch boundary via CommitWindowOpen1 parent 3bf3976 commit ca08a44
File tree
2 files changed
+11
-48
lines changed- bins/validator-node/src
- crates/bittensor-integration/src
2 files changed
+11
-48
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1637 | 1637 | | |
1638 | 1638 | | |
1639 | 1639 | | |
1640 | | - | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
1641 | 1643 | | |
1642 | 1644 | | |
1643 | | - | |
1644 | | - | |
1645 | | - | |
1646 | | - | |
1647 | | - | |
1648 | | - | |
1649 | | - | |
1650 | | - | |
1651 | | - | |
1652 | | - | |
1653 | | - | |
1654 | | - | |
1655 | | - | |
1656 | | - | |
1657 | | - | |
1658 | | - | |
1659 | | - | |
1660 | | - | |
1661 | | - | |
1662 | | - | |
1663 | | - | |
1664 | | - | |
1665 | | - | |
1666 | | - | |
1667 | | - | |
1668 | | - | |
1669 | | - | |
1670 | | - | |
| 1645 | + | |
1671 | 1646 | | |
1672 | 1647 | | |
1673 | 1648 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
236 | 234 | | |
237 | 235 | | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
250 | 240 | | |
251 | 241 | | |
252 | 242 | | |
| |||
463 | 453 | | |
464 | 454 | | |
465 | 455 | | |
466 | | - | |
| 456 | + | |
467 | 457 | | |
468 | | - | |
| 458 | + | |
469 | 459 | | |
470 | | - | |
471 | | - | |
472 | | - | |
| 460 | + | |
473 | 461 | | |
474 | 462 | | |
475 | 463 | | |
| |||
0 commit comments