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

Commit

Permalink
more edits
Browse files Browse the repository at this point in the history
  • Loading branch information
oed committed Sep 28, 2020
1 parent c5953d7 commit fd2bb08
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tools/sync-rootstore.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@ const start = async (address) => {
const opts = { orbitPath: './tmp/orbitdb/' }
const replicator = await Replicator.create(ipfs, opts)
console.log('starting')
await replicator.start(address)
await replicator.start(address, null)//, { spacesList: ['clients'] })
console.log('syncing')
await replicator.rootstoreSyncDone
console.log('rootstore synced')
console.log(replicator.rootstore._oplog.length)
console.log(replicator.rootstore.all.map(e => {
return e.payload.value
}))
//const store = await replicator._loadKeyValueStore('/orbitdb/QmXxg79y5akxNBB4WsY5oPS82PCxiU9WQbR1aK9aD7ieiH/3box.space.clients.keyvalue')
//console.log('store:')
//console.log(store._oplog.length)
await replicator.syncDone
console.log('all syned')
}
Expand Down

0 comments on commit fd2bb08

Please sign in to comment.