mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 22:25:24 +01:00
htlcswitch: update l.clearedOnionBlobs in link to use new HtlcIndex
This commit is contained in:
parent
3b94e5df4d
commit
74165ca8c1
1 changed files with 2 additions and 2 deletions
|
@ -1087,8 +1087,8 @@ func (l *channelLink) processLockedInHtlcs(
|
||||||
case lnwallet.Add:
|
case lnwallet.Add:
|
||||||
// Fetch the onion blob that was included within this
|
// Fetch the onion blob that was included within this
|
||||||
// processed payment descriptor.
|
// processed payment descriptor.
|
||||||
onionBlob := l.clearedOnionBlobs[pd.Index]
|
onionBlob := l.clearedOnionBlobs[pd.HtlcIndex]
|
||||||
delete(l.clearedOnionBlobs, pd.Index)
|
delete(l.clearedOnionBlobs, pd.HtlcIndex)
|
||||||
|
|
||||||
// Retrieve onion obfuscator from onion blob in order
|
// Retrieve onion obfuscator from onion blob in order
|
||||||
// to produce initial obfuscation of the onion
|
// to produce initial obfuscation of the onion
|
||||||
|
|
Loading…
Add table
Reference in a new issue