lnwallet+itest: fix PaymentDescriptor creation for blinded path htlc

This commit fixes the instantiation of the BlindingPoint member of
PaymentDescriptor during the conversion from persisted LogUpdates.
Previously, the blinding point was not set correctly. The test from the
previous commit is also updated to now assert that this behaviour is now
correct.
This commit is contained in:
Elle Mouton committed 2024-08-27 18:18:15 +02:00
1 parent 9ac8e673b4
commit b0852a22fd
2 files changed
+2 -9

No files matched your search

+1 -1
View File
@@ -205,7 +205,7 @@ func PayDescsFromRemoteLogUpdates(chanID lnwire.ShortChannelID, height uint64,
Height: height,
Index: uint16(i),
},
BlindingPoint: pd.BlindingPoint,
BlindingPoint: wireMsg.BlindingPoint,
}
pd.OnionBlob = make([]byte, len(wireMsg.OnionBlob))
copy(pd.OnionBlob[:], wireMsg.OnionBlob[:])