Skip to content

WIP : Pact / RocksDB Compaction for EVM - #57

Open
CryptoPascal31 wants to merge 4 commits into
evm/fix_fornumbers_spv_lookupsfrom
evm/compaction
Open

CryptoPascal31 wants to merge 4 commits into
evm/fix_fornumbers_spv_lookupsfrom
evm/compaction

Conversation

@CryptoPascal31

@CryptoPascal31 CryptoPascal31 commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Fixes the compaction tool for the Revolution/EVM branch.

  • Manage compaction height per chain (and ignores not present chains, in case)
  • Better management of the compaction heights. Use the ConsensusStatus + comprehensive different heights for each kind of Data.
  • Fixes BlockHistory Compaction
  • Rebuild missing Consensus state table.
  • Allows to use directly stdout for logs (if the user doesn't want file logging).

Heights management:

  • Most Pact tables = Height tagged as "Final" in the Consensus State.
  • Headers DB + payload DB = "Final height" - 2000
  • Transaction Index (only if enabled) = "Final height" - TTL (Important for duplicate validation rules)
  • BlockHistory = "Final height" - "Minimum required history for SPV Validation (at the Final height)"
  • Cuts DB = No compaction (automatically done by the node at runtime)

For now:

  • Unit tests DON'T compile and Pass
  • Not very well tested in real cases.

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.

2 participants