apple-dashboard-satellite
Advanced tools
Comparing version 1.12.4 to 1.12.7
@@ -0,1 +1,12 @@ | ||
1.12.7 / 2021-11-06 | ||
================== | ||
* Fix plotting stats on chia >= 1.2.11. | ||
1.12.5 / 2021-08-18 | ||
=================== | ||
* Removed the need for seperate api's and just use chia-api as its now overridable on Connection constructor and SERVICE() method | ||
1.11.2 / 2021-07-28 | ||
@@ -2,0 +13,0 @@ =================== |
@@ -1,2 +0,2 @@ | ||
const { Connection, ApiClient, constants } = require('apple-api'); | ||
const { Connection, ApiClient, constants } = require('chia-api'); | ||
const BigNumber = require('bignumber.js'); | ||
@@ -66,8 +66,11 @@ const { throttle } = require('lodash'); | ||
const daemonSslKeyFile = await chiaConfig.getDaemonSslKeyFile(); | ||
this.connection = new Connection(daemonAddress, { | ||
cert: daemonSslCertFile, | ||
key: daemonSslKeyFile, | ||
timeoutInSeconds: 20, | ||
coin: 'apple' | ||
}); | ||
this.connection.addService(constants.SERVICE().walletUi); | ||
this.connection.addService(constants.SERVICE('apple').walletUi); | ||
this.connection.addService(`${this.connection.coin} plots create`); // Add the legacy plotter service to receive its events as well | ||
this.connection.onError(err => logger.log({level: 'error', msg: `Stats Collection | ${err}`})); | ||
@@ -196,2 +199,5 @@ this.walletApiClient = new ApiClient.Wallet({ connection: this.connection, origin: this.origin }); | ||
this.plotterApiClient.onNewPlottingQueueStats(async queue => { | ||
if (!queue) { | ||
return; | ||
} | ||
const plotterStats = this.stats.has(plotterService) ? this.stats.get(plotterService) : {}; | ||
@@ -472,3 +478,3 @@ if (!plotterStats.jobs) { | ||
await Promise.all(this.enabledServices.filter(service => service !== plotterService).map(async service => { | ||
let isRunning = await this.daemonApiClient.isServiceRunning(constants.SERVICE()[service]); | ||
let isRunning = await this.daemonApiClient.isServiceRunning(constants.SERVICE('apple')[service]); | ||
if (isRunning && service === walletService && !this.walletIsLoggedIn) { | ||
@@ -475,0 +481,0 @@ const publicKeys = await this.walletApiClient.getPublicKeys(); |
{ | ||
"name": "apple-dashboard-satellite", | ||
"version": "1.12.4", | ||
"version": "1.12.7", | ||
"repository": "https://github.com/MinerGreggy/apple-dashboard-satellite.git", | ||
@@ -10,3 +10,3 @@ "bugs": "https://github.com/MinerGreggy/apple-dashboard-satellite/issues", | ||
"bignumber.js": "^9.0.1", | ||
"apple-api": "^2.2.5", | ||
"chia-api": "^3.0.0", | ||
"js-yaml": "^4.1.0", | ||
@@ -24,13 +24,13 @@ "lodash": "^4.17.21", | ||
"bin": { | ||
"apple-dashboard-satellite": "./main.js" | ||
"apple-dashboard-satellite": "./index.js" | ||
}, | ||
"scripts": { | ||
"start": "node main.js", | ||
"start": "node index.js", | ||
"package": "node bin/build-package.js" | ||
}, | ||
"main": "main.js", | ||
"main": "index.js", | ||
"engines": { | ||
"node": ">=12.0.0" | ||
}, | ||
"description": "apple-Api", | ||
"description": "apple-dashboard-satellite for monitoring forks and chia", | ||
"homepage": "https://github.com/MinerGreggy/apple-dashboard-satellite#readme", | ||
@@ -37,0 +37,0 @@ "keywords": [ |
72080
18
819
+ Addedchia-api@^3.0.0
+ Addedchia-api@3.6.1(transitive)
+ Addedws@8.18.0(transitive)
- Removedapple-api@^2.2.5
- Removedapple-api@2.2.5(transitive)
- Removedws@7.5.10(transitive)