multi: create channeldb/models package
Add a new subpackage to `lnd/channeldb` to hold some of the types that are used in the package itself and in other packages that should not depend on `channeldb`.
This commit is contained in:
29 files changed
+400
-315
No files matched your search
@@ -15,6 +15,7 @@ import (
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
"github.com/lightningnetwork/lnd/chainntnfs"
|
||||
"github.com/lightningnetwork/lnd/channeldb"
|
||||
"github.com/lightningnetwork/lnd/channeldb/models"
|
||||
"github.com/lightningnetwork/lnd/clock"
|
||||
"github.com/lightningnetwork/lnd/contractcourt"
|
||||
"github.com/lightningnetwork/lnd/htlcswitch/hop"
|
||||
@@ -640,7 +641,7 @@ func (s *Switch) UpdateForwardingPolicies(
|
||||
func (s *Switch) IsForwardedHTLC(chanID lnwire.ShortChannelID,
|
||||
htlcIndex uint64) bool {
|
||||
|
||||
circuit := s.circuits.LookupOpenCircuit(channeldb.CircuitKey{
|
||||
circuit := s.circuits.LookupOpenCircuit(models.CircuitKey{
|
||||
ChanID: chanID,
|
||||
HtlcID: htlcIndex,
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user