Commit 849f6111 authored by xiphon's avatar xiphon

Wallet: skip txes containing locked outputs

parent 56653670
......@@ -63,7 +63,7 @@ class Wallet
}
$transactions = [];
const toScan = ['pool', 'in'];
const toScan = ['pool', 'in'];
foreach (toScan as $entry) {
if (!isset($response[$entry])) {
continue;
......@@ -72,6 +72,9 @@ class Wallet
if $payment['subaddr_index']['major'] != $account_index {
continue;
}
if ($payment['locked']) {
continue;
}
$transaction = new Transaction(
$payment['txid'],
$payment['amount'],
......
......@@ -75,6 +75,9 @@ class WalletOld implements WalletCommon
if ($payment['subaddr_index']['major'] != $account_index) {
continue;
}
if ($payment['locked']) {
continue;
}
$transaction = new Transaction(
$payment['txid'],
$payment['amount'],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment