|
|
|
@ -14,7 +14,11 @@ import (
|
|
|
|
|
"github.com/lightningnetwork/lnd/zpay32"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var testStartingHeight = int32(600)
|
|
|
|
|
var (
|
|
|
|
|
testStartingHeight = int32(600)
|
|
|
|
|
testNodePubkey = "03f5374b16f0b1f1b49101de1b9d89e0b460bc57ce9c2f9" +
|
|
|
|
|
"132b73dfc76d3704daa"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// NewMockLnd returns a new instance of LndMockServices that can be used in unit
|
|
|
|
|
// tests.
|
|
|
|
@ -54,6 +58,7 @@ func NewMockLnd() *LndMockServices {
|
|
|
|
|
FailInvoiceChannel: make(chan lntypes.Hash, 2),
|
|
|
|
|
epochChannel: make(chan int32),
|
|
|
|
|
Height: testStartingHeight,
|
|
|
|
|
NodePubkey: testNodePubkey,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
lightningClient.lnd = &lnd
|
|
|
|
@ -121,6 +126,7 @@ type LndMockServices struct {
|
|
|
|
|
TrackPaymentChannel chan TrackPaymentMessage
|
|
|
|
|
|
|
|
|
|
Height int32
|
|
|
|
|
NodePubkey string
|
|
|
|
|
|
|
|
|
|
WaitForFinished func()
|
|
|
|
|
|
|
|
|
|