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
b8a30ffa
Commit
b8a30ffa
authored
Apr 24, 2019
by
xiphon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wallet: option to rescan from a specific height with 'monero:notify'
parent
1363deb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
app/Console/Commands/WalletNotify.php
app/Console/Commands/WalletNotify.php
+3
-2
No files found.
app/Console/Commands/WalletNotify.php
View file @
b8a30ffa
...
@@ -15,7 +15,8 @@ class walletNotify extends Command
...
@@ -15,7 +15,8 @@ class walletNotify extends Command
*
*
* @var string
* @var string
*/
*/
protected
$signature
=
'monero:notify'
;
protected
$signature
=
'monero:notify
{height? : Scan wallet transactions starting from the specified height}'
;
/**
/**
* The console command description.
* The console command description.
...
@@ -50,7 +51,7 @@ class walletNotify extends Command
...
@@ -50,7 +51,7 @@ class walletNotify extends Command
return
;
return
;
}
}
$min_height
=
Deposit
::
max
(
'block_received'
);
$min_height
=
$this
->
argument
(
'height'
)
??
Deposit
::
max
(
'block_received'
);
$transactions
=
$wallet
->
scanIncomingTransfers
(
max
(
$min_height
,
50
)
-
50
);
$transactions
=
$wallet
->
scanIncomingTransfers
(
max
(
$min_height
,
50
)
-
50
);
$transactions
->
each
(
function
(
$transaction
)
use
(
$wallet
)
{
$transactions
->
each
(
function
(
$transaction
)
use
(
$wallet
)
{
$this
->
processPayment
(
$transaction
);
$this
->
processPayment
(
$transaction
);
...
...
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