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

Function modern_order

common/bolt11.c:18–30  ·  view source on GitHub ↗

For test vectors, older ones put p before s. */

Source from the content-addressed store, hash-verified

16
17/* For test vectors, older ones put p before s. */
18static bool modern_order(const struct bolt11 *b11)
19{
20 if (!b11->description)
21 return true;
22 if (streq(b11->description,
23 "Blockstream Store: 88.85 USD for Blockstream Ledger Nano S x 1, \"Back In My Day\" Sticker x 2, \"I Got Lightning Working\" Sticker x 2 and 1 more items"))
24 return false;
25 if (streq(b11->description, "coffee beans"))
26 return false;
27 if (streq(b11->description, "payment metadata inside"))
28 return false;
29 return true;
30}
31#endif
32
33struct multiplier {

Callers 1

bolt11_encode_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected