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

Function wallet_invoice_create

wallet/wallet.c:2861–2874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2859}
2860
2861bool wallet_invoice_create(struct wallet *wallet,
2862 struct invoice *pinvoice,
2863 const struct amount_msat *msat TAKES,
2864 const struct json_escape *label TAKES,
2865 u64 expiry,
2866 const char *b11enc,
2867 const char *description,
2868 const u8 *features,
2869 const struct preimage *r,
2870 const struct sha256 *rhash,
2871 const struct sha256 *local_offer_id)
2872{
2873 return invoices_create(wallet->invoices, pinvoice, msat, label, expiry, b11enc, description, features, r, rhash, local_offer_id);
2874}
2875bool wallet_invoice_find_by_label(struct wallet *wallet,
2876 struct invoice *pinvoice,
2877 const struct json_escape *label)

Callers

nothing calls this directly

Calls 1

invoices_createFunction · 0.70

Tested by

no test coverage detected