-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
release: bump version to v0.18.3 rc2 #9036
release: bump version to v0.18.3 rc2 #9036
Commits on Aug 27, 2024
-
discovery: fix bug that can lead to sending invalid chan_ann msgs
Initially in lnd, we didn't store the extra TLV data that could be dangling off of gossip messages. This was fixed initially in lnd v0.5 with this PR: lightningnetwork#1825. Within the PR, we incorrect set the `ExtraOpaqueData` (extra TLV blob) of the `ChannelAnnouncement` to the value stored in `edge`, which is actually our channel update. As 6-ish years ago we didn't yet have anything that used the TLV gossip fields, this went unnoticed. Fast forward to 2024, we shipped an experimental version of inbounbd fees. This starts to store additional data in the `ExtraOpaqueData` field, the TLV for the inbound fee. Initially, everything is valid when the first `ChannelAnnouncement` is sent, but as soon as a user attempts to set an inbound fee policy, we'd incorrectly swap in that new serialized TLV for the _channel announcement_: lightningnetwork@841e243#diff-1eda595bbebe495bd74a6a0431c46b66cb4e8b53beb311067c010feac2665dcbR2560. Since we're just trying to generate a new `channel_update`, we don't also regenerate the signature for the `channel_announcement` message. As a result, we end up storing a `channel_announcement` with an invalid sig on disk, continuing to broadcast that to peers.
Configuration menu - View commit details
-
Copy full SHA for 57221bd - Browse repository at this point
Copy the full SHA 57221bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 53799e9 - Browse repository at this point
Copy the full SHA 53799e9View commit details -
if we use %x here we would get the hex representation of the String() method of the vertex, which is wrong.
Configuration menu - View commit details
-
Copy full SHA for b23e69c - Browse repository at this point
Copy the full SHA b23e69cView commit details -
multi: fix time.Time initialization.
ChanUpdate timestamps are now restircted so that they cannot be more than two weeks into the future. Moreover channels with both timestamps in the ReplyChannelRange msg either too far in the past or too far in the future are not queried. Moreover fix unitests.
Configuration menu - View commit details
-
Copy full SHA for 4441386 - Browse repository at this point
Copy the full SHA 4441386View commit details -
discovery: add detailed comment.
Describe why it is ok to resurrect zombie channels based on the timestamp of the `ReplyChannelRange` msg although its not verifiable data.
Configuration menu - View commit details
-
Copy full SHA for d906010 - Browse repository at this point
Copy the full SHA d906010View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4102e33 - Browse repository at this point
Copy the full SHA 4102e33View commit details -
Configuration menu - View commit details
-
Copy full SHA for dbe4ca3 - Browse repository at this point
Copy the full SHA dbe4ca3View commit details -
blindedpath: remove blockexpiry check.
Removes a check where we would NOT allow to create a blinded invoice with an expiry (invoice expiry in seconds considered as block time) lower than the min_final_ctlv_delta.
Configuration menu - View commit details
-
Copy full SHA for 38c8151 - Browse repository at this point
Copy the full SHA 38c8151View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89ef373 - Browse repository at this point
Copy the full SHA 89ef373View commit details -
blindedpath: minHTLC for blinded path change.
We will not add a buffer to the chan policy for blinded paths in case the sender amount violates the minHTLC restriction in the first place. Moreover we disgard a route fast if the payment amount is smaller than the minHTLC along the route.
Configuration menu - View commit details
-
Copy full SHA for 59355b1 - Browse repository at this point
Copy the full SHA 59355b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7292907 - Browse repository at this point
Copy the full SHA 7292907View commit details -
Configuration menu - View commit details
-
Copy full SHA for e431e5b - Browse repository at this point
Copy the full SHA e431e5bView commit details -
channeldb: add PutClosedScid and IsClosedScid
This commit adds the ability to store closed channels by scid in the database. This will allow the gossiper to ignore channel announcements for closed channels without having to do any expensive validation.
Configuration menu - View commit details
-
Copy full SHA for 4558eb0 - Browse repository at this point
Copy the full SHA 4558eb0View commit details -
discovery: add banman for channel announcements
This commit introduces a ban manager that marks peers as banned if they send too many invalid channel announcements to us. Expired entries are purged after a certain period of time (currently 48 hours).
Configuration menu - View commit details
-
Copy full SHA for b7c4a3c - Browse repository at this point
Copy the full SHA b7c4a3cView commit details -
multi: extend lnpeer.Peer interface with Disconnect function
This will be used in the gossiper to disconnect from peers if their ban score passes the ban threshold.
Configuration menu - View commit details
-
Copy full SHA for 3e318b4 - Browse repository at this point
Copy the full SHA 3e318b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for de58e3e - Browse repository at this point
Copy the full SHA de58e3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ae33b76 - Browse repository at this point
Copy the full SHA ae33b76View commit details -
discovery: implement ChannelAnnouncement banning
This commit hooks up the banman to the gossiper: - peers that are banned and don't have a channel with us will get disconnected until they are unbanned. - peers that are banned and have a channel with us won't get disconnected, but we will ignore their channel announcements until they are no longer banned. Note that this only disables gossip of announcements to us and still allows us to open channels to them.
Configuration menu - View commit details
-
Copy full SHA for 53a8d37 - Browse repository at this point
Copy the full SHA 53a8d37View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6111ac3 - Browse repository at this point
Copy the full SHA 6111ac3View commit details -
Configuration menu - View commit details
-
Copy full SHA for e69fdf5 - Browse repository at this point
Copy the full SHA e69fdf5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d111d8d - Browse repository at this point
Copy the full SHA d111d8dView commit details