lnd.xprv/lncfg
carla 34de5922ed
multi: add height-based invoice expiry
This commit adds height-based invoice expiry for hodl invoices
that have active htlcs. This allows us to cancel our intentionally
held htlcs before channels are force closed. We only add this for
hodl invoices because we expect regular invoices to automatically
be resolved.

We still keep hodl invoices in the time-based expiry queue,
because we want to expire open invoices that reach their timeout
before any htlcs are added. Since htlcs are added after the
invoice is created, we add new htlcs as they arrive in the
invoice registry. In this commit, we allow adding of duplicate
entries for an invoice to be added to the expiry queue as each
htlc arrives to keep implementation simple. Our cancellation
logic can already handle the case where an entry is already
canceled, so this is ok.
2021-05-11 08:45:29 +02:00
..
address_test.go lncfg: allow no auth on private addresses 2020-07-22 22:50:25 +08:00
address.go Merge pull request #5007 from Roasbeef/ipv6-tor-parse-fix 2021-02-10 23:49:47 -08:00
autopilot.go config+lncfg: move config structs to lncfg, drop suffix 2020-05-14 14:37:48 +02:00
bitcoind.go lncfg: add new PrunedNodeMaxPeers config option/flag 2021-04-06 14:55:19 -07:00
btcd.go config+lncfg: move config structs to lncfg, drop suffix 2020-05-14 14:37:48 +02:00
caches.go lncfg/caches: adds Caches sub config 2019-04-01 16:34:04 -07:00
chain.go lncfg+sample-lnd.conf: add DNS seed flag to chain cfg 2020-11-13 09:49:18 +01:00
cluster.go lnd: integrate leader elector to lnd main 2021-05-04 17:33:08 +02:00
config.go lnd+lncfg: move normalizeNetwork to lncfg 2020-10-29 15:20:00 -04:00
db_test.go kvdb: add timeout options for bbolt (#4787) 2020-12-07 15:31:49 -08:00
db.go etcd: decouple embedded etcd instance startup 2021-05-04 17:33:05 +02:00
gossip.go lncfg: expose channel update rate limiting options 2021-03-16 11:42:29 -07:00
healthcheck.go healthcheck: add healthcheck to shutdown if cert is expired (#4792) 2020-12-01 18:34:19 -08:00
interface.go lncfg/interface: define Validator iface + variadic Validate 2019-04-01 16:33:50 -07:00
invoices.go multi: add height-based invoice expiry 2021-05-11 08:45:29 +02:00
monitoring_off.go rpcserver+monitoring/config: enable Prometheus monitoring. 2019-06-11 11:26:09 -07:00
monitoring_on.go rpcserver+monitoring/config: enable Prometheus monitoring. 2019-06-11 11:26:09 -07:00
neutrino.go lncfg: add config options for new neutrino options 2021-04-29 13:56:17 -07:00
protocol_experimental_off.go config+protocol: enable anchor commitments (zero-fee HTLC ) by default 2020-12-15 10:13:25 +01:00
protocol_experimental_on.go config+protocol: enable anchor commitments (zero-fee HTLC ) by default 2020-12-15 10:13:25 +01:00
protocol_legacy_off.go Revert "lncfg: add new legacy protocol option to turn off gossip throttling" 2021-02-10 15:45:49 -08:00
protocol_legacy_on.go Revert "lncfg: add new legacy protocol option to turn off gossip throttling" 2021-02-10 15:45:49 -08:00
protocol.go lncfg: make anchor commitments opt-in 2021-01-14 09:09:42 +01:00
routing.go routing: add strict pruning as new flag, default for neutrino 2021-04-21 13:56:29 -05:00
tor.go config+lncfg: move config structs to lncfg, drop suffix 2020-05-14 14:37:48 +02:00
watchtower.go lncfg: add Watchtower config 2019-06-13 19:54:19 -07:00
workers_test.go config: add sanity check to prevent non-negative worker counts 2019-03-13 20:32:52 -07:00
workers.go lncfg/workers: reduce default write pool workers to 8 2019-04-22 16:30:27 -07:00
wtclient.go lncfg: show deprecated warning for wtclient.private-tower-uris option 2019-09-25 14:41:26 -07:00