For test vectors, older ones put p before s. */
| 16 | |
| 17 | /* For test vectors, older ones put p before s. */ |
| 18 | static 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 | |
| 33 | struct multiplier { |