Skip to content

Commit

Permalink
send invalid_site_key errors to miners
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Cazala committed Dec 20, 2017
1 parent fbb94f7 commit 8ae7623
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Miner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,12 @@ class Miner extends EventEmitter {
error.error || (error && JSON.stringify(error)) || "unknown error"
);
if (this.online) {
if (error.error === "invalid_site_key") {
this.sendToMiner({
type: "error",
params: error
});
}
this.emit("error", {
id: this.id,
login: this.login,
Expand Down

0 comments on commit 8ae7623

Please sign in to comment.