Feat: back end support for per coin 0-conf limit
This commit is contained in:
parent
5da28bc830
commit
ac38a40b6c
9 changed files with 32 additions and 21 deletions
|
|
@ -23,6 +23,12 @@ const createTerms = terms => (terms.active && terms.text) ? ({
|
|||
cancel: terms.cancelButtonText
|
||||
}) : null
|
||||
|
||||
const buildZeroConfLimits = (cryptoCodes, config) => {
|
||||
const zeroConfLimits = {}
|
||||
_.forEach(cryptoCode => { zeroConfLimits[cryptoCode] = configManager.getWalletSettings(cryptoCode, config).zeroConfLimit }, cryptoCodes)
|
||||
return zeroConfLimits
|
||||
}
|
||||
|
||||
function poll (req, res, next) {
|
||||
const machineVersion = req.query.version
|
||||
const machineModel = req.query.model
|
||||
|
|
@ -32,6 +38,7 @@ function poll (req, res, next) {
|
|||
const pid = req.query.pid
|
||||
const settings = req.settings
|
||||
const localeConfig = configManager.getLocale(deviceId, settings.config)
|
||||
const zeroConfLimits = buildZeroConfLimits(localeConfig.cryptoCurrencies, settings.config)
|
||||
const pi = plugins(settings, deviceId)
|
||||
const hasLightning = checkHasLightning(settings)
|
||||
|
||||
|
|
@ -70,7 +77,7 @@ function poll (req, res, next) {
|
|||
receiptPrintingActive: receipt.active,
|
||||
cassettes,
|
||||
twoWayMode: cashOutConfig.active,
|
||||
zeroConfLimit: cashOutConfig.zeroConfLimit,
|
||||
zeroConfLimits,
|
||||
reboot,
|
||||
shutdown,
|
||||
restartServices,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue