Skip to content

Conversation

@ohcee
Copy link
Collaborator

@ohcee ohcee commented Dec 6, 2025

This change improves sync performance by replacing multiple separate LevelDB writes for Zerocoin data with a single batched write. Previously, ConnectBlock() wrote spends, mints, and pubcoin spends individually, causing excessive disk I/O and slower block validation. The new function WriteBlockZerocoinData() combines these into one operation.

Key Points:

  • Reduces LevelDB write overhead
  • Enhances sync speed without configuration changes
  • Improves performance on both older and modern hardware
  • No consensus compatibility changes

Copy link
Collaborator

@seanPhill seanPhill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@seanPhill
Copy link
Collaborator

We'll run this on testnet for a while, but it should be good.

@Veil-Project Veil-Project merged commit ab27104 into Veil-Project:master Jan 4, 2026
8 checks passed
@ohcee ohcee deleted the zerocoin-batch-increase branch January 4, 2026 02:36
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.

3 participants