Add layer2 address separately

This commit is contained in:
Josh Harvey 2018-06-03 12:34:26 +03:00
parent d9aaf2437f
commit d1712ce1ce
7 changed files with 85 additions and 31 deletions

View file

@ -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'}
})
})
})
}