Skip to content

Add --enable-pruning flag#160

Merged
buffrr merged 1 commit intospacesprotocol:subspacesfrom
buffrr:prune
Mar 25, 2026
Merged

Add --enable-pruning flag#160
buffrr merged 1 commit intospacesprotocol:subspacesfrom
buffrr:prune

Conversation

@buffrr
Copy link
Copy Markdown
Member

@buffrr buffrr commented Mar 25, 2026

This PR:

  • Adds --enable-pruning flag: Calls Bitcoin Core's pruneblockchain RPC to free disk space after blocks have been processed, keeping a 120-block buffer from tip.Calls prune every 120 blocks during sync and every 60 seconds while idle.

  • Fixes BlockEvent::Tip emitting while waiting for Bitcoin Core: Previously BlockEvent::Tip was emitted both when fully synced and when Bitcoin Core was still syncing below activation height, incorrectly setting synced = true. Added BlockEvent::Waiting(u32) to distinguish the two cases carries Bitcoin Core's current block height for use by the pruning logic.

@buffrr buffrr merged commit d85e1b7 into spacesprotocol:subspaces Mar 25, 2026
1 check passed
@buffrr buffrr deleted the prune branch March 25, 2026 00:15
@buffrr buffrr restored the prune branch March 25, 2026 00:16
@buffrr buffrr deleted the prune branch March 25, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant