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
|
|
@ -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!'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue