Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions js/mine.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
(function() {
var main = function () {
/* TODO: Find a way to load mining config from YML.

if (!loadScript("config.js")) {
console.log("== config.js not found");
}
Expand Down Expand Up @@ -63,7 +63,7 @@
if (accountFunded()) {
console.log("== Account funded");

blockWatcher.stop();
blockWatcher.stopWatching();
miner_obj.stop();
cb();
}
Expand Down Expand Up @@ -124,7 +124,7 @@
console.log("== Pending transactions! Looking for next block...");
miner_obj.start(config.threads);
});

if (config.mine_periodically) return;

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

main();
})();