Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
cbc3334994 | |||
d111e3709b | |||
66a8610bb1 | |||
e4c41b82ef | |||
47df20fd7e |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@mojoio/bobcat",
|
"name": "@mojoio/bobcat",
|
||||||
"version": "1.0.15",
|
"version": "1.0.19",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@mojoio/bobcat",
|
"name": "@mojoio/bobcat",
|
||||||
"version": "1.0.15",
|
"version": "1.0.19",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartdelay": "^2.0.13",
|
"@pushrocks/smartdelay": "^2.0.13",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mojoio/bobcat",
|
"name": "@mojoio/bobcat",
|
||||||
"version": "1.0.15",
|
"version": "1.0.19",
|
||||||
"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",
|
||||||
|
@ -33,7 +33,7 @@ export class BobcatManager {
|
|||||||
public async addBobcat (networkAddressArg: string) {
|
public async addBobcat (networkAddressArg: string) {
|
||||||
const newBobcat = await Bobcat.createFromNetworkAddress(networkAddressArg);
|
const newBobcat = await Bobcat.createFromNetworkAddress(networkAddressArg);
|
||||||
this.bobcats.push(newBobcat);
|
this.bobcats.push(newBobcat);
|
||||||
console.log(`added ${newBobcat.latestMinerDetails.animal} at ${newBobcat.networkAddress}`);
|
console.log(`added ${newBobcat.latestMinerDetails?.animal} at ${newBobcat.networkAddress}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -44,7 +44,7 @@ export class BobcatManager {
|
|||||||
console.log(`cooling down for 10 seconds`);
|
console.log(`cooling down for 10 seconds`);
|
||||||
await plugins.smartdelay.delayFor(10000);
|
await plugins.smartdelay.delayFor(10000);
|
||||||
for (const bobcat of this.bobcats) {
|
for (const bobcat of this.bobcats) {
|
||||||
console.log(`now running maintenance on ${bobcat.latestMinerDetails.animal} at ${bobcat.networkAddress}`);
|
console.log(`now running maintenance on ${bobcat.latestMinerDetails?.animal} at ${bobcat.networkAddress}`);
|
||||||
await plugins.smartpromise.timeoutAndContinue(bobcat.runMaintenance());
|
await plugins.smartpromise.timeoutAndContinue(bobcat.runMaintenance());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user