Skip to content

Commit d51dbaf

Browse files
committed
stop blockWatcher filter with correct method name. fixes #74
1 parent d468e43 commit d51dbaf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

js/mine.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
(function() {
55
var main = function () {
66
/* TODO: Find a way to load mining config from YML.
7-
7+
88
if (!loadScript("config.js")) {
99
console.log("== config.js not found");
1010
}
@@ -63,7 +63,7 @@
6363
if (accountFunded()) {
6464
console.log("== Account funded");
6565

66-
blockWatcher.stop();
66+
blockWatcher.stopWatching();
6767
miner_obj.stop();
6868
cb();
6969
}
@@ -124,7 +124,7 @@
124124
console.log("== Pending transactions! Looking for next block...");
125125
miner_obj.start(config.threads);
126126
});
127-
127+
128128
if (config.mine_periodically) return;
129129

130130
web3.eth.filter("latest").watch(function () {
@@ -137,4 +137,3 @@
137137

138138
main();
139139
})();
140-

0 commit comments

Comments
 (0)