core-lightning/plugins
Rusty Russell f0fa5d1401 offers: handle re-fetching the same invoice twice.
We get a label clash: easy, just re-serve:

```
2021-02-18T04:29:37.474Z **BROKEN** plugin-offers: Failed invoice_request lnr1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcyyqwtp0rmsgquvuacqcl5cdfzwzmu3v8tqgvpqs8e80dlmxm7ey4xwrqdsqqqqqqqqqqqqqqqq2pqqfqpqynzqzx9rylzy40ernj4jzc3p2dwy3n8x6lqeaywwk725ghx4kx63pcfxgg2z3nsn80jzge06nt3ks8pr6rvnujq48376lpmrr3cq04nurpy783eyr0awh5773lrlmjek07rjf0nx4g9235ulkcs7jp2h5gumjyquhadh846da3jptxm9g0qz5lne4hjhag for offer 1cb0bc7b8201c673b8063f4c352270b7c8b0eb02181040f93bdbfd9b7ec92a67: Got JSON error: {\"code\":900,\"message\":\"Duplicate label\",\"data\":{\"label\":\"1cb0bc7b8201c673b8063f4c352270b7c8b0eb02181040f93bdbfd9b7ec92a67-08c5193e2255f91ce5590b110a9ae2466736be0cf48e75bcaa22e6ad8da88709-1\",\"bolt12\":\"lni1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcyyqwtp0rmsgquvuacqcl5cdfzwzmu3v8tqgvpqs8e80dlmxm7ey4xwzqrw4lauzsc2ajk26mv0ysxxmmxvejk2grxdaezqun4wd68jggvpkqqqqqqqqqqqqqqqqpgyqq7ypymf9efe2jj5r2mzunlqz67d75ht3ukxk0x9ftkcuknrgepsgupwfqpqynzqzx9rylzy40ernj4jzc3p2dwy3n8x6lqeaywwk725ghx4kx63pcf9qzxqt0dxq4zqwtz2qu44gzx7nzczc494cce2tgph5xgu5sn7vh8frky9z5n08xj9sp3yaxe9cqs5vss59r8pxwlyy3jl4xhrdqwz85xe9qqgcpda590qs9khxdx5qpetlx0j6ap0wsxagssmy2qjvhjp2kc3na54pht3pp76c405upne360lh8rzye32xxq6l0phpkk9pu9lwxnqkxuwt2nqqr9u\",\"payment_hash\":\"396250395aa046f4c58162a5ae31952d01bd0c8e5213f32e748ec428a9379cd2\",\"msatoshi\":7700446,\"amount_msat\":\"7700446msat\",\"status\":\"unpaid\",\"description\":\"Weekly coffee for rusty!\",\"expires_at\":1614832137,\"local_offer_id\":\"1cb0bc7b8201c673b8063f4c352270b7c8b0eb02181040f93bdbfd9b7ec92a67\"}}
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-02-25 14:44:03 +10:30
..
spender check-includes: allow redundant "config.h" 2021-02-04 12:02:36 +10:30
.gitignore plugins: add txprepare to .gitignore 2020-12-04 11:30:58 +10:30
autoclean.c libplugin: make init return a string. 2021-01-13 14:45:36 +01:00
bcli.c libplugin: make init return a string. 2021-01-13 14:45:36 +01:00
fetchinvoice.c fetchinvoice: don't abort() if we try to fetch an invoice from ourselves. 2021-01-14 11:12:11 +01:00
keysend.c libplugin: make init return a string. 2021-01-13 14:45:36 +01:00
libplugin-pay.c plugin: Check that we have a non-empty route in libplugin 2021-02-10 15:17:38 +01:00
libplugin-pay.h pay, wallet: rename internal bolt11 vars to invstring. 2020-12-15 12:05:02 +01:00
libplugin.c libplugin: make init return a string. 2021-01-13 14:45:36 +01:00
libplugin.h libplugin: make init return a string. 2021-01-13 14:45:36 +01:00
Makefile common: extract fp16 routines into their own file. 2021-02-04 12:02:36 +10:30
offers_inv_hook.c common/amount: make fmt_amount_sat / fmt_amount_msat etc take copy. 2021-01-09 12:45:31 +01:00
offers_inv_hook.h plugins/offer: handle receiving an invoice in an onion_message. 2021-01-09 14:34:35 +10:30
offers_invreq_hook.c offers: handle re-fetching the same invoice twice. 2021-02-25 14:44:03 +10:30
offers_invreq_hook.h plugins/offers: add code to catch invoice_request onion messages. 2020-12-23 14:24:39 +01:00
offers_offer.c offer: allow offers in other currencies if we can convert. 2021-01-09 12:45:31 +01:00
offers_offer.h offers: split offer send_invoice generation into new JSON command 2021-01-09 14:34:35 +10:30
offers.c offers: make it a runtime option. 2021-01-13 14:45:36 +01:00
offers.h plugin/offers: hoist send_onion_reply into core. 2021-01-09 14:34:35 +10:30
pay.c pay: Check for self-payments before attempting to pay 2021-02-10 15:17:38 +01:00
README.md doc: fix wording in plugins/README.md 2020-01-06 12:57:59 +01:00
txprepare.c txprepare: Verify that outputs arg is an array 2020-12-09 06:56:21 +10:30

Plugin Directory

Any file in this directory which is executable and whose name only consists of alphanumeric characters, space, '.', '-' or '_' will be automatically loaded when lightningd starts (unless suppressed with commandline options).