MCPcopy Create free account
hub / github.com/ElementsProject/lightning / find_unstored_payment

Function find_unstored_payment

wallet/wallet.c:3004–3017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3002}
3003
3004static struct wallet_payment *
3005find_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
3019static void destroy_unstored_payment(struct wallet_payment *payment)
3020{

Callers 4

wallet_payment_setupFunction · 0.85
wallet_payment_storeFunction · 0.85
wallet_payment_by_hashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected