lnd: correct docs in WatchNewChannel

This commit is contained in:
Conner Fromknecht committed 2018-03-31 02:00:06 -07:00
1 parent 3eb53467e0
commit 7db7c9c493
1 file changed
+2 -2
+2 -2
View File
@@ -433,8 +433,8 @@ func lndMain() error {
WatchNewChannel: func(channel *channeldb.OpenChannel, WatchNewChannel: func(channel *channeldb.OpenChannel,
addr *lnwire.NetAddress) error { addr *lnwire.NetAddress) error {
// First, we'll mark this new peer as a persistent // First, we'll mark this new peer as a persistent peer
// re-connection purposes. // for re-connection purposes.
server.mu.Lock() server.mu.Lock()
pubStr := string(addr.IdentityKey.SerializeCompressed()) pubStr := string(addr.IdentityKey.SerializeCompressed())
server.persistentPeers[pubStr] = struct{}{} server.persistentPeers[pubStr] = struct{}{}