mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-30 07:35:07 +02:00
htlcswitch+lnwallet: fix OnionBlob to 1366 bytes
This commit is contained in:
@@ -3419,7 +3419,7 @@ func (l *channelLink) processRemoteAdds(fwdPkg *channeldb.FwdPkg,
|
||||
// parse the onion object in order to obtain the
|
||||
// routing information with DecodeHopIterator function
|
||||
// which process the Sphinx packet.
|
||||
onionReader := bytes.NewReader(pd.OnionBlob)
|
||||
onionReader := bytes.NewReader(pd.OnionBlob[:])
|
||||
|
||||
req := hop.DecodeHopIteratorRequest{
|
||||
OnionReader: onionReader,
|
||||
@@ -3471,7 +3471,7 @@ func (l *channelLink) processRemoteAdds(fwdPkg *channeldb.FwdPkg,
|
||||
// Fetch the onion blob that was included within this processed
|
||||
// payment descriptor.
|
||||
var onionBlob [lnwire.OnionPacketSize]byte
|
||||
copy(onionBlob[:], pd.OnionBlob)
|
||||
copy(onionBlob[:], pd.OnionBlob[:])
|
||||
|
||||
// Before adding the new htlc to the state machine, parse the
|
||||
// onion object in order to obtain the routing information with
|
||||
|
Reference in New Issue
Block a user