Expired transaction after bugfix (#121)
* other minor fixes * reedemable transaction expiry fix
This commit is contained in:
parent
25030fab2a
commit
63e0782e32
3 changed files with 13 additions and 3 deletions
|
|
@ -138,6 +138,10 @@ function authorizeZeroConf (settings, tx, machineId) {
|
|||
const plugin = cryptoConfig.zeroConf
|
||||
const zeroConfLimit = machineConfig.zeroConfLimit
|
||||
|
||||
if (!_.isObject(tx.fiat)) {
|
||||
return Promise.reject(new Error('tx.fiat is undefined!'))
|
||||
}
|
||||
|
||||
if (plugin === 'no-zero-conf' || tx.fiat.gt(zeroConfLimit)) {
|
||||
return Promise.resolve(false)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue