fix: allow zero invoices on server
This commit is contained in:
parent
f47b04c404
commit
bd8b0ca182
3 changed files with 486 additions and 79 deletions
|
|
@ -263,7 +263,7 @@ function getStatus (account, tx, requested, settings, operatorId) {
|
|||
const externalCryptoCode = coinUtils.getEquivalentCode(cryptoCode)
|
||||
return checkCryptoCode(cryptoCode)
|
||||
.then(() => {
|
||||
const address = coinUtils.parseUrl(cryptoCode, account.environment, toAddress)
|
||||
const address = coinUtils.parseUrl(cryptoCode, account.environment, toAddress, false)
|
||||
// Consider all LN transactions successful
|
||||
if (isLightning(address)) {
|
||||
return { receivedCryptoAtoms: cryptoAtoms, status: 'confirmed' }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue