watchtower/wtclient/interface: add LoadTower and mock impl

This commit is contained in:
Conner Fromknecht committed 2019-04-23 19:17:21 -07:00
1 parent 1c22474ad3
commit 7d99005dde
4 files changed
+33 -1

No files matched your search

+7
View File
@@ -1,6 +1,7 @@
package wtdb
import (
"errors"
"net"
"sync"
@@ -8,6 +9,12 @@ import (
"github.com/lightningnetwork/lnd/lnwire"
)
var (
// ErrTowerNotFound signals that the target tower was not found in the
// database.
ErrTowerNotFound = errors.New("tower not found")
)
// Tower holds the necessary components required to connect to a remote tower.
// Communication is handled by brontide, and requires both a public key and an
// address.