Skip to content
This repository was archived by the owner on Aug 9, 2021. It is now read-only.

Commit fd2bb08

Browse files
committed
more edits
1 parent c5953d7 commit fd2bb08

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tools/sync-rootstore.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,16 @@ const start = async (address) => {
99
const opts = { orbitPath: './tmp/orbitdb/' }
1010
const replicator = await Replicator.create(ipfs, opts)
1111
console.log('starting')
12-
await replicator.start(address)
12+
await replicator.start(address, null)//, { spacesList: ['clients'] })
1313
console.log('syncing')
1414
await replicator.rootstoreSyncDone
1515
console.log('rootstore synced')
16-
console.log(replicator.rootstore._oplog.length)
16+
console.log(replicator.rootstore.all.map(e => {
17+
return e.payload.value
18+
}))
19+
//const store = await replicator._loadKeyValueStore('/orbitdb/QmXxg79y5akxNBB4WsY5oPS82PCxiU9WQbR1aK9aD7ieiH/3box.space.clients.keyvalue')
20+
//console.log('store:')
21+
//console.log(store._oplog.length)
1722
await replicator.syncDone
1823
console.log('all syned')
1924
}

0 commit comments

Comments
 (0)