Commit 1363deb8 authored by xiphon's avatar xiphon
Browse files

wallet: use tx_id + subaddr_index to process multi-destination txes

parent 37f06e80
...@@ -66,7 +66,7 @@ class walletNotify extends Command ...@@ -66,7 +66,7 @@ class walletNotify extends Command
*/ */
public function processPayment(Transaction $transaction) 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) {
if ($deposit->block_received == 0) { if ($deposit->block_received == 0) {
$deposit->block_received = $transaction->block_height; $deposit->block_received = $transaction->block_height;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment