Feat: back end support for per coin 0-conf limit

This commit is contained in:
csrapr 2021-04-08 18:41:56 +01:00 committed by Josh Harvey
parent 5da28bc830
commit ac38a40b6c
9 changed files with 32 additions and 21 deletions

View file

@ -131,11 +131,10 @@ function getWalletStatus (settings, tx) {
}
function authorizeZeroConf (settings, tx, machineId) {
const plugin = configManager.getWalletSettings(tx.cryptoCode, settings.config).zeroConf
const isBitcoindAvailable =
configManager.getWalletSettings(tx.cryptoCode, settings.config).wallet === 'bitcoind'
const cashOutConfig = configManager.getCashOut(machineId, settings.config)
const zeroConfLimit = cashOutConfig.zeroConfLimit
const walletSettings = configManager.getWalletSettings(tx.cryptoCode, settings.config)
const isBitcoindAvailable = walletSettings.wallet === 'bitcoind'
const plugin = walletSettings.zeroConf
const zeroConfLimit = walletSettings.zeroConfLimit || 0
if (!_.isObject(tx.fiat)) {
return Promise.reject(new Error('tx.fiat is undefined!'))