Commit 2cdfea4
committed
fix: wire up DashPay payment history to wallet transactions
The Payment History screen was always empty because it only read from
the dashpay_payments database table, which was only populated when
payments were sent through the app's DashPay UI. The
process_incoming_payment() function existed but was never called.
Changes:
- Add scan_wallet_transactions_for_dashpay_payments() that cross-
references SPV wallet transactions against DashPay address mappings
and saves matches to the dashpay_payments table (idempotent)
- Call it from LoadPaymentHistory backend task for immediate retroactive
detection when the user opens the Payment History screen
- Call it during SPV reconcile for ongoing automatic detection
- Fix ContactDetailsScreen to load per-contact payment history from DB
(was initialized empty and never populated)
Closes #6881 parent 594c556 commit 2cdfea4
8 files changed
Lines changed: 542 additions & 34 deletions
File tree
- src
- backend_task
- dashpay
- context
- database
- ui/dashpay
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
174 | 208 | | |
175 | 209 | | |
176 | 210 | | |
| |||
0 commit comments