Skip to content

Instantly share code, notes, and snippets.

View JoseSK999's full-sized avatar
🎢
https://youtu.be/-ZcNkX1ax80

S \times 3 πŸ—Ώ JoseSK999

🎢
https://youtu.be/-ZcNkX1ax80
View GitHub Profile
@JoseSK999
JoseSK999 / witnessless-sync.md
Last active June 2, 2025 18:03
Witnessless Sync: Why Pruned Nodes Can Skip Witness Downloads for Assume-Valid Blocks

Witnessless Sync

Why pruned nodes can skip witness downloads for assume-valid blocks

Background

Two years ago I asked in BSE why (segregated) witness data is downloaded for assume-valid blocks in pruned mode. We don't validate these witnesses, and we delete them shortly after. Pieter Wuille explained that skipping witness downloads would require extending the set of consensus checks delegated to assume-valid. But implementing this change is relatively straightforward, and because SegWit witness data now makes up a significant portion of each block, omitting it can cut bandwidth usage by over 40%.

Extending assume-valid: Required Additional Checks