File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 55
66 restProxy "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
77 "github.com/lightninglabs/lndclient"
8+ "github.com/lightninglabs/loop"
89 "github.com/lightninglabs/loop/loopd"
910 "github.com/lightninglabs/loop/looprpc"
1011 "github.com/lightningnetwork/lnd/lnrpc"
@@ -27,6 +28,10 @@ var _ SubServer = (*loopSubServer)(nil)
2728func NewLoopSubServer (cfg * loopd.Config , remoteCfg * RemoteDaemonConfig ,
2829 remote bool ) SubServer {
2930
31+ // Overwrite the loop daemon's user agent name, so it sends "litd"
32+ // instead of "loopd".
33+ loop .AgentName = "litd"
34+
3035 return & loopSubServer {
3136 Daemon : loopd .New (cfg , nil ),
3237 cfg : cfg ,
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ var _ SubServer = (*poolSubServer)(nil)
2727func NewPoolSubServer (cfg * pool.Config , remoteCfg * RemoteDaemonConfig ,
2828 remote bool ) SubServer {
2929
30+ // Overwrite the pool daemon's user agent name, so it sends "litd"
31+ // instead of and "poold".
32+ pool .SetAgentName ("litd" )
33+
3034 return & poolSubServer {
3135 Server : pool .NewServer (cfg ),
3236 cfg : cfg ,
Original file line number Diff line number Diff line change @@ -31,8 +31,6 @@ import (
3131 "github.com/lightninglabs/lightning-terminal/session"
3232 "github.com/lightninglabs/lightning-terminal/subservers"
3333 "github.com/lightninglabs/lndclient"
34- "github.com/lightninglabs/loop"
35- "github.com/lightninglabs/pool"
3634 "github.com/lightningnetwork/lnd"
3735 "github.com/lightningnetwork/lnd/build"
3836 "github.com/lightningnetwork/lnd/chainreg"
@@ -1413,16 +1411,10 @@ func (g *LightningTerminal) initSubServers() {
14131411 g .cfg .faradayRemote ,
14141412 ))
14151413
1416- // Overwrite the loop daemon's user agent name so it sends "litd"
1417- // instead of "loopd".
1418- loop .AgentName = "litd"
14191414 g .subServerMgr .AddServer (subservers .NewLoopSubServer (
14201415 g .cfg .Loop , g .cfg .Remote .Loop , g .cfg .loopRemote ,
14211416 ))
14221417
1423- // Overwrite the pool daemon's user agent name so it sends "litd"
1424- // instead of and "poold".
1425- pool .SetAgentName ("litd" )
14261418 g .subServerMgr .AddServer (subservers .NewPoolSubServer (
14271419 g .cfg .Pool , g .cfg .Remote .Pool , g .cfg .poolRemote ,
14281420 ))
You can’t perform that action at this time.
0 commit comments