feat: rbf checking in blockcypher plugin
This commit is contained in:
parent
434d30b079
commit
d338d0adca
3 changed files with 43 additions and 14 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue