From f77fb9944ed1d33dc0d3139aeaf2d2eb00fb408b Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 14 Mar 2022 18:41:22 -0700 Subject: [PATCH] feature: advertise required feature bit for TLV onions In this commit, we start to advertise the required feature bit for the new modern TLV onion format. In a future change, we'll remove the logic for being able to encode+encode the payload. For now, we still have tests that exercise being able to use the new and old formats (as well as both of them in a single route), so we'll continue to retain that behavior for now. Implements https://github.com/lightning/bolts/pull/962. --- docs/release-notes/release-notes-0.15.0.md | 6 +++++- feature/default_sets.go | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/release-notes/release-notes-0.15.0.md b/docs/release-notes/release-notes-0.15.0.md index 140908d69fa..a1bd52cf577 100644 --- a/docs/release-notes/release-notes-0.15.0.md +++ b/docs/release-notes/release-notes-0.15.0.md @@ -1,5 +1,9 @@ # Release Notes +## P2P Protocol + +[lnd now advertises the TLV onion feature bit as required(https://github.com/lightningnetwork/lnd/pull/6336). + ## Security * [Misconfigured ZMQ @@ -179,4 +183,4 @@ gRPC performance metrics (latency to process `GetInfo`, etc)](https://github.com * Thebora Kompanioni * Torkel Rogstad * Vsevolod Kaganovych -* Yong Yu \ No newline at end of file +* Yong Yu diff --git a/feature/default_sets.go b/feature/default_sets.go index d345c90df94..12017cff318 100644 --- a/feature/default_sets.go +++ b/feature/default_sets.go @@ -18,7 +18,7 @@ var defaultSetDesc = setDesc{ SetInit: {}, // I SetNodeAnn: {}, // N }, - lnwire.TLVOnionPayloadOptional: { + lnwire.TLVOnionPayloadRequired: { SetInit: {}, // I SetNodeAnn: {}, // N SetInvoice: {}, // 9