[FIX] Also archive orphaned transactions
This commit is contained in:
parent
08b44d7f48
commit
360025aeab
@ -53,6 +53,7 @@ class Transaction extends Base {
|
|||||||
WHERE t.archived = 0
|
WHERE t.archived = 0
|
||||||
AND (
|
AND (
|
||||||
( t.account_id = ? AND t.id <= ? AND b.confirmations >= ? )
|
( t.account_id = ? AND t.id <= ? AND b.confirmations >= ? )
|
||||||
|
OR ( t.account_id = ? AND t.id <= ? AND b.confirmations = -1 )
|
||||||
OR ( t.account_id = ? AND t.id <= ? AND t.type IN ( 'Credit_PPS', 'Donation_PPS', 'Fee_PPS', 'TXFee', 'Debit_MP', 'Debit_AP' ) )
|
OR ( t.account_id = ? AND t.id <= ? AND t.type IN ( 'Credit_PPS', 'Donation_PPS', 'Fee_PPS', 'TXFee', 'Debit_MP', 'Debit_AP' ) )
|
||||||
)");
|
)");
|
||||||
if ($this->checkStmt($stmt) && $stmt->bind_param('iiiii', $account_id, $txid, $this->config['confirmations'], $account_id, $txid) && $stmt->execute())
|
if ($this->checkStmt($stmt) && $stmt->bind_param('iiiii', $account_id, $txid, $this->config['confirmations'], $account_id, $txid) && $stmt->execute())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user