ckb icon indicating copy to clipboard operation
ckb copied to clipboard

Replace `SledBackend` by `ckb-rocksdb`

Open eval-exec opened this issue 5 months ago • 0 comments

What problem does this PR solve?

This PR want to load/store Headers from/into ckb-rocksdb

What is changed and how it works?

Proposal: xxx Design doc: TODO

What's Changed:

Related changes

  • Remove SledBackend
  • Load/Store packed::HeaderView from ckb-rocksdb
  • Create a new COLUMN: COLUMN_HEADER_INDEX to store number->hash relation for Headers
  • in processing headers, use insert headers by 1 batch insert transaction instead of 2000x sequencial insert transaction

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code ci-runs-only: [ quick_checks,linters ]

Side effects

  • Performance regression
  • Breaking backward compatibility

Release note

Title Only: Include only the PR title in the release note.

eval-exec avatar Sep 17 '25 04:09 eval-exec