From 1363deb86e5ffc15b327de223cb39c40b42591f7 Mon Sep 17 00:00:00 2001 From: xiphon Date: Wed, 24 Apr 2019 11:49:29 +0000 Subject: [PATCH] wallet: use tx_id + subaddr_index to process multi-destination txes --- app/Console/Commands/WalletNotify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/WalletNotify.php b/app/Console/Commands/WalletNotify.php index 3befc93..dd7eade 100644 --- a/app/Console/Commands/WalletNotify.php +++ b/app/Console/Commands/WalletNotify.php @@ -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; -- GitLab