multi: make tlv onion compulsory

This commit is contained in:
Keagan McClelland committed 2024-01-11 09:43:31 -08:00
1 parent 9afe1b72dc
commit 239103c2b3
9 files changed
+29 -26

No files matched your search

+2 -1
View File
@@ -19,7 +19,7 @@ var testSetDesc = setDesc{
lnwire.DataLossProtectRequired: {
SetNodeAnn: {}, // I
},
lnwire.TLVOnionPayloadOptional: {
lnwire.TLVOnionPayloadRequired: {
SetInit: {}, // I
SetNodeAnn: {}, // N
},
@@ -104,6 +104,7 @@ func testManager(t *testing.T, test managerTest) {
// Assert that the manager properly unset the configured feature
// bits from all sets.
if test.cfg.NoTLVOnion {
assertUnset(lnwire.TLVOnionPayloadRequired)
assertUnset(lnwire.TLVOnionPayloadOptional)
}
if test.cfg.NoStaticRemoteKey {