mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-09 20:23:24 +02:00
htlcswitch: update l.clearedOnionBlobs in link to use new HtlcIndex
This commit is contained in:
@@ -1087,8 +1087,8 @@ func (l *channelLink) processLockedInHtlcs(
|
||||
case lnwallet.Add:
|
||||
// Fetch the onion blob that was included within this
|
||||
// processed payment descriptor.
|
||||
onionBlob := l.clearedOnionBlobs[pd.Index]
|
||||
delete(l.clearedOnionBlobs, pd.Index)
|
||||
onionBlob := l.clearedOnionBlobs[pd.HtlcIndex]
|
||||
delete(l.clearedOnionBlobs, pd.HtlcIndex)
|
||||
|
||||
// Retrieve onion obfuscator from onion blob in order
|
||||
// to produce initial obfuscation of the onion
|
||||
|
Reference in New Issue
Block a user