1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-26 23:49:34 +01:00
eclair/eclair-core/src/main
Pierre-Marie Padiou 68cbcf74e3
Prune stale network announcements (#219)
See https://github.com/lightningnetwork/lightning-rfc/blob/master/07-routing-gossip.md#recommendation-on-pruning-stale-entries.

* send a new `channel_update` every 24h as keepalive

* use case object instead of symbol for ticks

* minor improvements in router init

* prune stale channels

Note that we don't want to prune brand new channels for which we didn't
yet receive a channel update, so we consider stale a channel that:
(1) is older than 2 weeks (2*7*144 = 2016 blocks)
AND
(2) didn't have an update during the last 2 weeks.

Pruning is triggered every day.

Also renamed event `BITCOIN_FUNDING_OTHER_CHANNEL_SPENT` to
`BITCOIN_FUNDING_EXTERNAL_CHANNEL_SPENT`.

* filter out duplicate announcements before checking sig

* changed routing table dump parameters
2017-11-21 16:47:02 +01:00
..
resources Improved fees management (#216) 2017-11-21 15:59:01 +01:00
scala/fr/acinq/eclair Prune stale network announcements (#219) 2017-11-21 16:47:02 +01:00