feat: rbf checking in blockcypher plugin

This commit is contained in:
José Oliveira 2021-04-04 21:45:09 +01:00 committed by Josh Harvey
parent 434d30b079
commit d338d0adca
3 changed files with 43 additions and 14 deletions

View file

@ -132,6 +132,8 @@ 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
@ -148,7 +150,7 @@ function authorizeZeroConf (settings, tx, machineId) {
const zeroConf = ph.load(ph.ZERO_CONF, plugin)
const account = settings.accounts[plugin]
return zeroConf.authorize(account, tx.toAddress, tx.cryptoAtoms, tx.cryptoCode)
return zeroConf.authorize(account, tx.toAddress, tx.cryptoAtoms, tx.cryptoCode, isBitcoindAvailable)
}
function getStatus (settings, tx, machineId) {