Skip to content

Commit

Permalink
rocksdb: move MemoryOverlay to storage module (#580)
Browse files Browse the repository at this point in the history
* add memory overlay test

* fix put

* implement memory overlay block deletion

* add memory overlay block deletion tests

* move tip list to abstraction and add tests

* treeNodes use tip list

* move memory overlay to hypercore-on-the-rocks

* rename peak to peek
  • Loading branch information
chm-diederichs authored Nov 12, 2024
1 parent 161a69d commit 280f667
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const b4a = require('b4a')
const assert = require('nanoassert')
const unslab = require('unslab')
const z32 = require('z32')
const MemoryOverlay = require('./memory-overlay')
const Mutex = require('./mutex')
const MerkleTree = require('./merkle-tree')
const BlockStore = require('./block-store')
Expand Down Expand Up @@ -180,7 +179,7 @@ class SessionState {
}

memoryOverlay () {
const storage = new MemoryOverlay(this.storage)
const storage = this.storage.createMemoryOverlay()
const s = new SessionState(
this.core,
storage,
Expand Down

0 comments on commit 280f667

Please sign in to comment.