Feature: Add block pruning module for historical blockchain data cleanup#3641
Feature: Add block pruning module for historical blockchain data cleanup#3641jason-aelf wants to merge 2 commits intodevfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #3641 +/- ##
==========================================
+ Coverage 90.62% 90.64% +0.01%
==========================================
Files 680 685 +5
Lines 26298 26367 +69
Branches 2369 2372 +3
==========================================
+ Hits 23833 23900 +67
- Misses 2350 2352 +2
Partials 115 115
🚀 New features to boost your workflow:
|
|
There is also a protocol-level compatibility issue when the requester's Once the header for That makes the interaction look like a successful empty response rather than "history unavailable". I think the sync protocol needs a distinguishable outcome here, or a fallback path, otherwise long-offline nodes can get stuck depending on which peers they hit. |
|
I think there is a correctness issue in the historical sync path after pruning.
In particular, if a fresh peer asks for blocks starting from genesis after pruning has already removed height 2/3/... data, So a pruning node can become unable to serve historical sync from genesis/new peers. I think this path needs an explicit "history pruned" behavior, or a traversal that stops cleanly once historical links are missing, not just null filtering at the very end. |
No description provided.