Commit 5b1fd04
committed
refactor: Drop fork reconciliation memory limit
There is already a memory limit being enforced implicitly, namely through:
1. Requiring that every block have a size less than or equal to
`MAX_BLOCK_SIZE_IN_FORK_RECONCILIATION`.
2. Requiring that the number of blocks being reconciled does not exceed
`self.global_state_lock.cli().sync_mode_threshold`.
This commit removes the memory limit in `try_ensure_path` as well as the state
variable used to track memory use for fork reconciliation.1 parent db28953 commit 5b1fd04
File tree
2 files changed
+0
-31
lines changed- neptune-core/src
- application/loops
- protocol
2 files changed
+0
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | 79 | | |
84 | 80 | | |
85 | 81 | | |
| |||
456 | 452 | | |
457 | 453 | | |
458 | 454 | | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | 455 | | |
479 | 456 | | |
480 | 457 | | |
| |||
519 | 496 | | |
520 | 497 | | |
521 | 498 | | |
522 | | - | |
523 | 499 | | |
524 | 500 | | |
525 | 501 | | |
526 | 502 | | |
527 | 503 | | |
528 | | - | |
529 | 504 | | |
530 | 505 | | |
531 | 506 | | |
| |||
559 | 534 | | |
560 | 535 | | |
561 | 536 | | |
562 | | - | |
563 | 537 | | |
564 | 538 | | |
565 | 539 | | |
| |||
584 | 558 | | |
585 | 559 | | |
586 | 560 | | |
587 | | - | |
588 | 561 | | |
589 | 562 | | |
590 | 563 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | 627 | | |
631 | 628 | | |
632 | 629 | | |
| |||
640 | 637 | | |
641 | 638 | | |
642 | 639 | | |
643 | | - | |
644 | 640 | | |
645 | 641 | | |
646 | 642 | | |
| |||
0 commit comments