Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
5fb5979c91 | |||
cf61de9093 |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@mojoio/bobcat",
|
"name": "@mojoio/bobcat",
|
||||||
"version": "1.0.11",
|
"version": "1.0.12",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@mojoio/bobcat",
|
"name": "@mojoio/bobcat",
|
||||||
"version": "1.0.11",
|
"version": "1.0.12",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartnetwork": "^2.0.14",
|
"@pushrocks/smartnetwork": "^2.0.14",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mojoio/bobcat",
|
"name": "@mojoio/bobcat",
|
||||||
"version": "1.0.11",
|
"version": "1.0.12",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a module to talk to bobcat miners",
|
"description": "a module to talk to bobcat miners",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -8,8 +8,12 @@ export class Bobcat {
|
|||||||
// STATIC
|
// STATIC
|
||||||
public static async createFromNetworkAddress(networkAddressArg: string) {
|
public static async createFromNetworkAddress(networkAddressArg: string) {
|
||||||
const newBobcat = new Bobcat(networkAddressArg);
|
const newBobcat = new Bobcat(networkAddressArg);
|
||||||
await newBobcat.checkMinerStatus().catch();
|
try {
|
||||||
await newBobcat.gatherMinerDetails().catch();
|
await newBobcat.checkMinerStatus();
|
||||||
|
await newBobcat.gatherMinerDetails();
|
||||||
|
} catch(err) {
|
||||||
|
console.log('initial adding completed with errors');
|
||||||
|
}
|
||||||
return newBobcat;
|
return newBobcat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,8 +21,4 @@ export class BobcatManager {
|
|||||||
await bobcat.runMaintenance();
|
await bobcat.runMaintenance();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
public async restart() {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user