Skip to content

Commit

Permalink
rocksdb : add byte helpers and use atomic batches (#526)
Browse files Browse the repository at this point in the history
* methods use atomic write/read batches, remove flush

* update test to teardown and use async commit

* tree.get can be passed batch

* add getByteRange helper

* proof helpers all support batches

* remove stale code

* update to new storage api

* update to use peakLastTreeNode

* use deleteRange for truncations

* reopen a tree from db storage

* remove cache

* right span available nodes

* skip cache test

* skip all but merkle tree tests

* update for batch api

* rename to dbBatch for clarity

* standard

* kill stale code

* rename to read/writeBatch

* truncation should delete parent nodes
  • Loading branch information
chm-diederichs authored Jun 21, 2024
1 parent daa4766 commit 5f42215
Show file tree
Hide file tree
Showing 3 changed files with 235 additions and 359 deletions.
Loading

0 comments on commit 5f42215

Please sign in to comment.