lnd: properly pass peer remote db for graph, local db for rest
In this commit, we fix a mistake in the split for the new `peer` package/struct when instantiating the config needed. The existing code had the DB's swapped. In this commit, we fix this to pass the remote DB for generic channeldb access, and the local DB for channel graph access.
This commit is contained in:
parent
37a29b4869
commit
4603b3f981
@ -2853,8 +2853,8 @@ func (s *server) peerConnected(conn net.Conn, connReq *connmgr.ConnReq,
|
|||||||
ReadPool: s.readPool,
|
ReadPool: s.readPool,
|
||||||
Switch: s.htlcSwitch,
|
Switch: s.htlcSwitch,
|
||||||
InterceptSwitch: s.interceptableSwitch,
|
InterceptSwitch: s.interceptableSwitch,
|
||||||
ChannelDB: s.localChanDB,
|
ChannelDB: s.remoteChanDB,
|
||||||
ChannelGraph: s.remoteChanDB.ChannelGraph(),
|
ChannelGraph: s.localChanDB.ChannelGraph(),
|
||||||
ChainArb: s.chainArb,
|
ChainArb: s.chainArb,
|
||||||
AuthGossiper: s.authGossiper,
|
AuthGossiper: s.authGossiper,
|
||||||
ChanStatusMgr: s.chanStatusMgr,
|
ChanStatusMgr: s.chanStatusMgr,
|
||||||
|
Loading…
Reference in New Issue
Block a user