mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-30 07:35:07 +02:00
htlcswitch: move hop iterator into htlcswitch/hop package
Prepares for onion blob decoding outside of htlcswitch.
This commit is contained in:
@@ -2,6 +2,7 @@ package htlcswitch
|
||||
|
||||
import (
|
||||
"github.com/lightningnetwork/lnd/channeldb"
|
||||
"github.com/lightningnetwork/lnd/htlcswitch/hop"
|
||||
"github.com/lightningnetwork/lnd/lnwire"
|
||||
)
|
||||
|
||||
@@ -54,7 +55,7 @@ type htlcPacket struct {
|
||||
|
||||
// obfuscator contains the necessary state to allow the switch to wrap
|
||||
// any forwarded errors in an additional layer of encryption.
|
||||
obfuscator ErrorEncrypter
|
||||
obfuscator hop.ErrorEncrypter
|
||||
|
||||
// localFailure is set to true if an HTLC fails for a local payment before
|
||||
// the first hop. In this case, the failure reason is simply encoded, not
|
||||
|
Reference in New Issue
Block a user