mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-27 20:27:48 +02:00
channeldb: remove address resolution from channeldb
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
945be73bca
commit
d8f453d9dc
@@ -65,12 +65,6 @@ var (
|
||||
// channel closure. This key should be accessed from within the
|
||||
// sub-bucket of a target channel, identified by its channel point.
|
||||
revocationLogBucket = []byte("revocation-log-key")
|
||||
|
||||
// resolveTCP is a resolver that is used to resolve nodes'
|
||||
// publicly advertised addresses. It is set to net.ResolveTCPAddr
|
||||
// initially, but the SetResolver function can be used to change this
|
||||
// to a Tor-specific resolver.
|
||||
resolveTCP = net.ResolveTCPAddr
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -395,12 +389,6 @@ type OpenChannel struct {
|
||||
sync.RWMutex
|
||||
}
|
||||
|
||||
// SetResolver sets resolveTCP to a resolver other than the default
|
||||
// net.ResolveTCPAddr resolver function.
|
||||
func SetResolver(resolver func(string, string) (*net.TCPAddr, error)) {
|
||||
resolveTCP = resolver
|
||||
}
|
||||
|
||||
// FullSync serializes, and writes to disk the *full* channel state, using
|
||||
// both the active channel bucket to store the prefixed column fields, and the
|
||||
// remote node's ID to store the remainder of the channel state.
|
||||
|
Reference in New Issue
Block a user