diff --git a/lib/index.js b/lib/index.js index 82ab79f..ad56942 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,5 +1,5 @@ const makeDebug = require('debug') -const MsgV3 = require('ppppp-db/msg-v3') +const MsgV4 = require('ppppp-db/msg-v4') /** * @typedef {ReturnType} PPPPPDB @@ -89,7 +89,7 @@ function initConductor(peer, config) { /** * How many bytes does a single msg ID take up */ - const MSG_ID_BYTES = MsgV3.getMootID('dummy', 'dummy').length + const MSG_ID_BYTES = MsgV4.getMootID('dummy', 'dummy').length /** * How many bytes does an average msg take up diff --git a/test/follow-feeds.test.js b/test/follow-feeds.test.js index 90524e5..5c99608 100644 --- a/test/follow-feeds.test.js +++ b/test/follow-feeds.test.js @@ -388,8 +388,8 @@ test('Set and Dict ghost spans', async (t) => { alice.conductor.start(aliceID, [['post@all'], ['post@all']], 4_000) bob.conductor.start(bobID, [['post@all'], ['post@all']], 4_000) - assert.equal(alice.set.getGhostSpan(), 11916, 'alice set ghost span is 2') - assert.equal(alice.dict.getGhostSpan(), 11916, 'alice set ghost span is 2') + assert.equal(alice.set.getGhostSpan(), 5958, 'alice set ghost span is 2') + assert.equal(alice.dict.getGhostSpan(), 5958, 'alice set ghost span is 2') await p(alice.close)(true) await p(bob.close)(true)