Skip to content

Commit 26bbb77

Browse files
committed
terminal: overwrite pool AgentName to litd
To indicate to the server that an account/order was created by the LiT integrated Pool daemon, we overwrite the global AgentName variable.
1 parent 7fe6fc7 commit 26bbb77

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

terminal.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,10 @@ func (g *LightningTerminal) Run() error {
9999
g.poolServer = pool.NewServer(g.cfg.Pool)
100100
g.rpcProxy = newRpcProxy(g.cfg, g, getAllPermissions())
101101

102-
// Overwrite the loop daemon's user agent name so it sends "litd"
103-
// instead of "loopd".
102+
// Overwrite the loop and pool daemon's user agent name so it sends
103+
// "litd" instead of "loopd" and "poold" respectively.
104104
loop.AgentName = "litd"
105+
pool.SetAgentName("litd")
105106

106107
// Hook interceptor for os signals.
107108
err = signal.Intercept()

0 commit comments

Comments
 (0)