| 3002 | } |
| 3003 | |
| 3004 | static struct wallet_payment * |
| 3005 | find_unstored_payment(struct wallet *wallet, |
| 3006 | const struct sha256 *payment_hash, |
| 3007 | u64 partid) |
| 3008 | { |
| 3009 | struct wallet_payment *i; |
| 3010 | |
| 3011 | list_for_each(&wallet->unstored_payments, i, list) { |
| 3012 | if (sha256_eq(payment_hash, &i->payment_hash) |
| 3013 | && i->partid == partid) |
| 3014 | return i; |
| 3015 | } |
| 3016 | return NULL; |
| 3017 | } |
| 3018 | |
| 3019 | static void destroy_unstored_payment(struct wallet_payment *payment) |
| 3020 | { |
no outgoing calls
no test coverage detected