[state]: watchers return a state

This commit is contained in:
2020-04-30 15:19:58 +02:00
parent 6d43cbc725
commit f0a98ba685
11 changed files with 57 additions and 22 deletions

View File

@@ -16,7 +16,8 @@ export function ws2pWatcher(conf: Conf) {
const keypair = new Key(keys.pub, keys.sec)
const target = `${wserver.address} (${wserver.expectedPubkey.substr(0, 8)})`
await watcherLoop(
return watcherLoop(
`WS2P ${wserver.address}`,
async () => {
const localAuth = new WS2PPubkeyLocalAuth(wserver.currency, keypair, "", async () => true)