Skip to content

Commit

Permalink
Update full sync test with db status
Browse files Browse the repository at this point in the history
  • Loading branch information
arj03 committed Sep 9, 2020
1 parent 2a78506 commit fc4ad36
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/full-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ SSB.events.on('SSB: loaded', function() {
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0 // wtf
//SSB.remoteAddress = 'wss://between-two-worlds.dk:8990~noauth:lbocEWqF2Fg6WMYLgmfYvqJlMfL7hiqVAV6ANjHWNw8='
SSB.remoteAddress = 'wss://between-two-worlds.dk:8989~shs:lbocEWqF2Fg6WMYLgmfYvqJlMfL7hiqVAV6ANjHWNw8='
//SSB.remoteAddress = 'ws://between-two-worlds.dk:8989~shs:mvYGZ9GhdAHTXP+QSgQmpdu7fZBwzZTRAlpTiIClt1E='
//SSB.remoteAddress = 'ws://localhost:8989~shs:mvYGZ9GhdAHTXP+QSgQmpdu7fZBwzZTRAlpTiIClt1E='
//SSB.remoteAddress = 'ws://localhost:8989~shs:6CAxOI3f+LUOVrbAl0IemqiS7ATpQvr9Mdw9LC4+Uv0='

SSB.net.id = '@VIOn+8a/vaQvv/Ew3+KriCngyUXHxHbjXkj4GafBAY0=.ed25519'

Expand All @@ -51,7 +54,9 @@ SSB.events.on('SSB: loaded', function() {
console.log(msgs.length)

console.log("starting sync")
SSB.db.feedSyncer.syncFeeds(() => {})
SSB.db.feedSyncer.syncFeeds(() => {
console.log(SSB.db.getStatus())
})
})
)
})
Expand Down

0 comments on commit fc4ad36

Please sign in to comment.