rgb-cln/channeld
Rusty Russell 7bde0ead4d connectd: allow out-of-bounds fees unless they're actually getting *worse*.
Pointed out by @fiatjaf, and indeed it happened to me as well; a peer with
a high feerate reconnects and sends a similar (but now ludicrous) feerate,
and we get upset:

```
$ lightning-cli listpeers 039c73f53daad1050a6a72afb5353a2152f3152ee17168cd0ab28c2cb3e0050e36
{
   "peers": [
      {
         "id": "039c73f53daad1050a6a72afb5353a2152f3152ee17168cd0ab28c2cb3e0050e36",
         "connected": false,
         "channels": [
            {
               "state": "CHANNELD_NORMAL",
               "scratch_txid": "d796aa9c44920cc7169cdb61e36437bf180cedaec44103a69591ce2baac9b1d9",
               "last_tx_fee": "14329000msat",
               "last_tx_fee_msat": "14329000msat",
               "feerate": {
                  "perkw": 19791,
                  "perkb": 79164
               },
```

Then in the logs:
```
2021-07-23T19:34:56.227Z DEBUG   039c73f53daad1050a6a72afb5353a2152f3152ee17168cd0ab28c2cb3e0050e36-channeld-chan#39381: billboard perm: update_fee 17055 outside range 253-7210
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-07-25 10:18:20 +09:30
..
test liquidity-ad: wire in csv updates to commitment txs 2021-07-20 13:28:38 -04:00
Makefile liquidity-ads: persist channel blockheight states to disk 2021-07-20 13:28:38 -04:00
channeld.c connectd: allow out-of-bounds fees unless they're actually getting *worse*. 2021-07-25 10:18:20 +09:30
channeld_htlc.h Makefile: use completely separate spec-derived files for EXPERIMENTAL_FEATURES 2020-09-08 09:42:00 +09:30
channeld_wire.csv channel: wire blockheight updates from channeld in to database 2021-07-20 13:28:38 -04:00
channeld_wiregen.c lightningd: don't turn zero-length tlv fields into NULL. 2021-07-21 13:27:27 -04:00
channeld_wiregen.h lightningd: don't turn zero-length tlv fields into NULL. 2021-07-21 13:27:27 -04:00
commit_tx.c channel lease: set csv_lock for commitment transactions 2021-07-20 13:28:38 -04:00
commit_tx.h liquidity-ad: wire in csv updates to commitment txs 2021-07-20 13:28:38 -04:00
full_channel.c liquidity-ad: wire in csv updates to commitment txs 2021-07-20 13:28:38 -04:00
full_channel.h liquidity-ads: persist channel blockheight states to disk 2021-07-20 13:28:38 -04:00
full_channel_error.h Makefile: make check-includes check all the non-generated files. 2020-10-22 12:14:34 +10:30
watchtower.c lease_rates: add csv lock to modify anchor scripts 2021-07-20 13:28:38 -04:00
watchtower.h channeld: pass in HSM_FD as an argument to watchtower code. 2020-05-07 11:35:31 +02:00