Merge pull request #228 from shocknet/remove-2nd-peer
remove offline peer
This commit is contained in:
commit
ea37088ae9
3 changed files with 4 additions and 6 deletions
|
|
@ -46,7 +46,7 @@ module.exports = (mainnet = false) => {
|
||||||
logfile: "shockapi.log",
|
logfile: "shockapi.log",
|
||||||
lndLogFile: parsePath(`${lndDirectory}/logs/bitcoin/${network}/lnd.log`),
|
lndLogFile: parsePath(`${lndDirectory}/logs/bitcoin/${network}/lnd.log`),
|
||||||
lndDirPath: lndDirectory,
|
lndDirPath: lndDirectory,
|
||||||
peers: ['http://gun.shock.network:8765/gun','http://gun2.shock.network:8765/gun'],
|
peers: ['http://gun.shock.network:8765/gun'],
|
||||||
useTLS: false,
|
useTLS: false,
|
||||||
tokenExpirationMS: 259200000
|
tokenExpirationMS: 259200000
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
gun = Gun({
|
gun = Gun({
|
||||||
peers: [
|
peers: [
|
||||||
'http://gun.shock.network:8765/gun',
|
'http://gun.shock.network:8765/gun',
|
||||||
'http://gun2.shock.network:8765/gun'
|
//'http://gun2.shock.network:8765/gun'
|
||||||
],
|
],
|
||||||
axe: false
|
axe: false
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -36,9 +36,7 @@ const setReceivedReqsMap = reqs => {
|
||||||
}
|
}
|
||||||
|
|
||||||
listeners.add(() => {
|
listeners.add(() => {
|
||||||
logger.info(
|
logger.info(`new received reqs: ${size(getReceivedReqs())}`)
|
||||||
`new received reqs: ${JSON.stringify(getReceivedReqs(), null, 4)}`
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const react = debounce(() => {
|
const react = debounce(() => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue