diff --git a/services/gunDB/Mediator/index.js b/services/gunDB/Mediator/index.js index c6ea9731..1402cb39 100644 --- a/services/gunDB/Mediator/index.js +++ b/services/gunDB/Mediator/index.js @@ -260,7 +260,6 @@ const API = require('../contact-api/index') const gun = Gun({ axe: false, - multicast: false, peers: Config.PEERS }) @@ -482,5 +481,6 @@ module.exports = { getUser, mySEA, getMySecret, + logoff, $$__SHOCKWALLET__ENCRYPTED__ } diff --git a/src/routes.js b/src/routes.js index 260ede51..e53c3356 100644 --- a/src/routes.js +++ b/src/routes.js @@ -519,7 +519,7 @@ module.exports = async ( await recreateLnServices() if (GunDB.isAuthenticated()) { - GunDB.instantiateGun() + GunDB.logoff() } const publicKey = await GunDB.authenticate(alias, password)