Skip to content

Commit

Permalink
Add chiaDaemonTimeoutInSeconds config option
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbrucker committed Jul 13, 2023
1 parent edfc979 commit 35c40ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/service/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ class Config {
return this.chiaDashboardCoreUrl !== Config.defaultFoxyDashboardApiUrl
}

get chiaDaemonTimeoutInSeconds() {
return this.config.chiaDaemonTimeoutInSeconds || 20
}

get configExists() {
return existsSync(this.configFilePath);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/service/stats-collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class StatsCollection {
this.connection = new Connection(daemonAddress, {
cert: daemonSslCertFile,
key: daemonSslKeyFile,
timeoutInSeconds: 20,
timeoutInSeconds: config.chiaDaemonTimeoutInSeconds,
});
this.connection.addService(constants.SERVICE().walletUi);
this.connection.addService(`${this.connection.coin} plots create`); // Add the legacy plotter service to receive its events as well
Expand Down

0 comments on commit 35c40ac

Please sign in to comment.