torsvc: added new type that multiplexes torsvc and net packages
This commit adds the `lnnet` package which contains an implementation of the newly created LightningNet interface which multiplexes the Dial and DNS-related functions to use net by default and torsvc if a flag is specified. This modularization makes for cleaner code.
This commit is contained in:
1 parent
8c482f2be7
commit
698df2ac16
8 files changed
+98
-111
No files matched your search
@@ -22,8 +22,9 @@ type NetAddress struct {
|
||||
// the node.
|
||||
IdentityKey *btcec.PublicKey
|
||||
|
||||
// Address is is the IP address and port of the node.
|
||||
Address *net.TCPAddr
|
||||
// Address is is the IP address and port of the node. This is left
|
||||
// general so that multiple implementations can be used.
|
||||
Address net.Addr
|
||||
|
||||
// ChainNet is the Bitcoin network this node is associated with.
|
||||
// TODO(roasbeef): make a slice in the future for multi-chain
|
||||
|
||||
Reference in new issue
Block a user