Issue #12: Fix to ensure the Bluewallet app does not see on-chain Tx(s) if LND was to funnel channels using the user's BTC address for deposits.

This commit is contained in:
alerobrod 2019-04-06 14:06:43 +00:00 committed by Igor Korsakov
parent 16c6d167da
commit 6a6611e9b6

View File

@ -289,7 +289,7 @@ export class User {
txs = txs.result;
let result = [];
for (let tx of txs) {
if (tx.confirmations >= 3 && tx.address === addr) {
if (tx.confirmations >= 3 && tx.address === addr && tx.category === 'receive') {
tx.type = 'bitcoind_tx';
result.push(tx);
}
@ -339,7 +339,7 @@ export class User {
txs = txs.result;
let result = [];
for (let tx of txs) {
if (tx.confirmations < 3 && tx.address === addr) {
if (tx.confirmations < 3 && tx.address === addr && tx.category === 'receive') {
result.push(tx);
}
}