refactor+htlcswitch: method for TLV payload parsing logic

In preparation for calling the TLV payload parsing logic recursively for
when we need to peel dummy hops from an onion, this commit creates a new
extractTLVPayload function. This is a pure refactor.
This commit is contained in:
Elle Mouton committed 2024-07-26 09:54:18 +02:00
1 parent 18cb7f0b87
commit a15e4bb55f
2 files changed
+69 -57

No files matched your search

-1
View File
@@ -287,7 +287,6 @@ func TestDecryptAndValidateFwdInfo(t *testing.T) {
encryptedData: testCase.data,
blindingPoint: testCase.payloadBlinding,
}, false,
make(map[tlv.Type][]byte),
)
require.ErrorIs(t, err, testCase.expectedErr)
})