Add layer2 address separately
This commit is contained in:
parent
d9aaf2437f
commit
d1712ce1ce
7 changed files with 85 additions and 31 deletions
|
|
@ -74,16 +74,11 @@ function getStatus (account, toAddress, requested, cryptoCode) {
|
|||
|
||||
return connect()
|
||||
.then(c => {
|
||||
if (isLightning) {
|
||||
return c.lookupInvoice({r_hash_str: rHashStr})
|
||||
.then(r => {
|
||||
if (r.settled) return {status: 'confirmed'}
|
||||
return {status: 'notSeen'}
|
||||
})
|
||||
}
|
||||
|
||||
// Note: this must be handled outside of lnd
|
||||
return {status: 'notSeen'}
|
||||
return c.lookupInvoice({r_hash_str: rHashStr})
|
||||
.then(r => {
|
||||
if (r.settled) return {status: 'confirmed'}
|
||||
return {status: 'notSeen'}
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue