Merge pull request #228 from shocknet/remove-2nd-peer

remove offline peer
This commit is contained in:
CapDog 2020-10-24 07:20:15 -05:00 committed by GitHub
commit ea37088ae9
3 changed files with 4 additions and 6 deletions

View file

@ -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
}; };

View file

@ -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
}) })
@ -61,4 +61,4 @@
background-color: black; background-color: black;
} }
</style> </style>
</html> </html>

View file

@ -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(() => {