You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tapcfg: allow to configure lnd RPC timeout, increase default val
This fixes an issue where tapd would shut down because querying channels
on a slow lnd would time out:
```
2024-10-30 10:06:21.535 [DBG] STAT: Setting the taproot-assets sub-server as errored: received critical error from sub-server (taproot-assets), shutting down: failed to handle outgoing message: error adding local alias: add alias: error listing local channels: rpc error: code = DeadlineExceeded desc = context deadline exceeded
```
Copy file name to clipboardExpand all lines: tapcfg/config.go
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,10 @@ const (
130
130
// waits having identified an asset transfer on-chain and before
131
131
// retrieving the corresponding proof via the proof courier service.
132
132
defaultProofRetrievalDelay=5*time.Second
133
+
134
+
// defaultLndRPCTimeout is the default timeout we'll use for RPC
135
+
// requests to lnd.
136
+
defaultLndRPCTimeout=1*time.Minute
133
137
)
134
138
135
139
var (
@@ -258,6 +262,9 @@ type LndConfig struct {
258
262
MacaroonPathstring`long:"macaroonpath" description:"The full path to the single macaroon to use, either the admin.macaroon or a custom baked one. Cannot be specified at the same time as macaroondir. A custom macaroon must contain ALL permissions required for all subservers to work, otherwise permission errors will occur."`
259
263
260
264
TLSPathstring`long:"tlspath" description:"Path to lnd tls certificate"`
265
+
266
+
// RPCTimeout is the timeout we'll use for RPC requests to lnd.
267
+
RPCTimeout time.Duration`long:"rpctimeout" description:"The timeout to use for RPC requests to lnd; a sufficiently long duration should be chosen to avoid issues with slow responses"`
261
268
}
262
269
263
270
// UniverseConfig is the config that houses any Universe related config
0 commit comments