What is Nostr?
Rusty Russell [ARCHIVE] /
npub1zw7…khpx
2023-06-09 12:53:53
in reply to nevent1q…7nkw

Rusty Russell [ARCHIVE] on Nostr: 📅 Original date posted:2019-01-08 📝 Original message: Fabrice Drouin ...

📅 Original date posted:2019-01-08
📝 Original message:
Fabrice Drouin <fabrice.drouin at acinq.fr> writes:
> I think there may even be a simpler case where not replacing updates
> will result in nodes not knowing that a channel has been re-enabled:
> suppose you got 3 updates U1, U2, U3 for the same channel, U2 disables
> it, U3 enables it again and is the same as U1. If you discard it and
> just keep U1, and your peer has U2, how will you tell them that the
> channel has been enabled again ? Unless "discard" here means keep the
> update but don't broadcast it ?

This can only happen if you happen to lose connection to the peer(s)
which sent U2 before it sends U3.

Again, this corner case penalizes flapping channels. If we also
ratelimit our own enables to 1 per 120 seconds, you won't hit this case?

> But then there's a risk that nodes would discard channels as stale
> because they don't get new updates when they reconnect.

You need to accept redundant updates after 1 week, I think.

Cheers,
Rusty.
Author Public Key
npub1zw7cc8z78v6s3grujfvcv3ckpvg6kr0w7nz9yzvwyglyg0qu5sjsqhkhpx