Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
xiphon
CCS Backend
Commits
849f6111
Commit
849f6111
authored
Oct 29, 2020
by
xiphon
Browse files
Wallet: skip txes containing locked outputs
parent
56653670
Changes
2
Hide whitespace changes
Inline
Side-by-side
monero/Wallet.php
View file @
849f6111
...
...
@@ -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'
],
...
...
monero/WalletOld.php
View file @
849f6111
...
...
@@ -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'
],
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment