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

Function wallet_payment_setup

wallet/wallet.c:3024–3031  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3022}
3023
3024void wallet_payment_setup(struct wallet *wallet, struct wallet_payment *payment)
3025{
3026 assert(!find_unstored_payment(wallet, &payment->payment_hash,
3027 payment->partid));
3028
3029 list_add_tail(&wallet->unstored_payments, &payment->list);
3030 tal_add_destructor(payment, destroy_unstored_payment);
3031}
3032
3033void wallet_payment_store(struct wallet *wallet,
3034 struct wallet_payment *payment TAKES)

Callers 2

test_payment_crudFunction · 0.85
send_payment_coreFunction · 0.85

Calls 1

find_unstored_paymentFunction · 0.85

Tested by 1

test_payment_crudFunction · 0.68