Commit 37f2797b authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Fix: proof-of-work could not be restarted

parent 9e0cbd21
......@@ -218,7 +218,7 @@ function Server (dbConf, overrideConf) {
], done);
};
let shouldContinue = true;
let shouldContinue = false;
this.stopBlockComputation = function() {
shouldContinue = false;
......@@ -226,6 +226,7 @@ function Server (dbConf, overrideConf) {
};
this.startBlockComputation = function() {
shouldContinue = true;
return co(function *() {
while (shouldContinue) {
try {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment