feat: send ping and speedtest URLs to machine

This commit is contained in:
André Sá 2021-10-20 10:36:00 +01:00
parent 34aa2cfca9
commit 6da243ea7f

View file

@ -51,6 +51,20 @@ const settingsCache = {}
const devMode = argv.dev || options.http
const urlsToPing = [
`us.archive.ubuntu.com`,
`uk.archive.ubuntu.com`,
`za.archive.ubuntu.com`,
`cn.archive.ubuntu.com`
]
const speedtestFiles = [
{
url: `https://github.com/lamassu/lamassu-machine/releases/download/v7.5.3/python-defaults_2.7.18-3.tar.gz`,
size: 8900
}
]
function checkHasLightning (settings) {
return configManager.getWalletSettings('BTC', settings.config).layer2 !== 'no-layer2'
}
@ -110,7 +124,9 @@ function poll (req, res, next) {
receipt,
operatorInfo,
machineInfo,
triggers
triggers,
speedtestFiles,
urlsToPing
}
// BACKWARDS_COMPATIBILITY 7.5
// machines before 7.5 expect old compliance