Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
xiphon
CCS Backend
Commits
830b2024
Commit
830b2024
authored
Apr 21, 2020
by
xiphon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MoneroNotify: 'height' argument might be undefined (wallet:notify)
parent
76e82307
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
app/Coin/CoinMonero.php
app/Coin/CoinMonero.php
+2
-1
No files found.
app/Coin/CoinMonero.php
View file @
830b2024
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
namespace
App\Coin
;
namespace
App\Coin
;
use
App\Deposit
;
use
Illuminate\Console\Command
;
use
Illuminate\Console\Command
;
use
Monero\WalletCommon
;
use
Monero\WalletCommon
;
...
@@ -16,7 +17,7 @@ class CoinMonero implements Coin
...
@@ -16,7 +17,7 @@ class CoinMonero implements Coin
public
function
onNotifyGetTransactions
(
Command
$command
,
WalletCommon
$wallet
)
public
function
onNotifyGetTransactions
(
Command
$command
,
WalletCommon
$wallet
)
{
{
$min_height
=
$command
->
argument
(
'height'
)
??
Deposit
::
max
(
'block_received'
);
$min_height
=
$command
->
argument
s
()[
'height'
]
??
Deposit
::
max
(
'block_received'
);
return
$wallet
->
scanIncomingTransfers
(
max
(
$min_height
,
50
)
-
50
);
return
$wallet
->
scanIncomingTransfers
(
max
(
$min_height
,
50
)
-
50
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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