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
1363deb8
Commit
1363deb8
authored
Apr 24, 2019
by
xiphon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wallet: use tx_id + subaddr_index to process multi-destination txes
parent
37f06e80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/Console/Commands/WalletNotify.php
app/Console/Commands/WalletNotify.php
+1
-1
No files found.
app/Console/Commands/WalletNotify.php
View file @
1363deb8
...
...
@@ -66,7 +66,7 @@ class walletNotify extends Command
*/
public
function
processPayment
(
Transaction
$transaction
)
{
$deposit
=
Deposit
::
where
(
'tx_id'
,
$transaction
->
id
)
->
first
();
$deposit
=
Deposit
::
where
(
'tx_id'
,
$transaction
->
id
)
->
where
(
'subaddr_index'
,
$transaction
->
subaddr_index
)
->
first
();
if
(
$deposit
)
{
if
(
$deposit
->
block_received
==
0
)
{
$deposit
->
block_received
=
$transaction
->
block_height
;
...
...
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