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
830b2024
Commit
830b2024
authored
Apr 21, 2020
by
xiphon
Browse files
MoneroNotify: 'height' argument might be undefined (wallet:notify)
parent
76e82307
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Coin/CoinMonero.php
View file @
830b2024
...
...
@@ -2,6 +2,7 @@
namespace
App\Coin
;
use
App\Deposit
;
use
Illuminate\Console\Command
;
use
Monero\WalletCommon
;
...
...
@@ -16,7 +17,7 @@ class CoinMonero implements Coin
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
);
}
...
...
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