Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
monero-project
CCS Backend
Commits
6ceaabf2
Commit
6ceaabf2
authored
Dec 22, 2019
by
xiphon
Browse files
CoinZcoin: don't skip incoming txes
parent
1cc3cedd
Changes
1
Show whitespace changes
Inline
Side-by-side
app/Coin/CoinZcoin.php
View file @
6ceaabf2
...
@@ -18,8 +18,7 @@ class CoinZcoin implements Coin
...
@@ -18,8 +18,7 @@ class CoinZcoin implements Coin
public
function
onNotifyGetTransactions
(
Command
$command
,
WalletCommon
$wallet
)
public
function
onNotifyGetTransactions
(
Command
$command
,
WalletCommon
$wallet
)
{
{
$skip_txes
=
Deposit
::
whereNotNull
(
'tx_id'
)
->
where
(
'confirmations'
,
'>'
,
10
)
->
count
();
return
$wallet
->
scanIncomingTransfers
()
->
each
(
function
(
$tx
)
{
return
$wallet
->
scanIncomingTransfers
(
$skip_txes
)
->
each
(
function
(
$tx
)
{
$project
=
Project
::
where
(
'address'
,
$tx
->
address
)
->
first
();
$project
=
Project
::
where
(
'address'
,
$tx
->
address
)
->
first
();
if
(
$project
)
{
if
(
$project
)
{
$tx
->
subaddr_index
=
$project
->
subaddr_index
;
$tx
->
subaddr_index
=
$project
->
subaddr_index
;
...
...
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