diff --git a/app/service/BlockchainService.js b/app/service/BlockchainService.js index f4bd75775e511afc6d63136f3e88a3a2536fd7ee..69b62c8926dc8ae39b1d808939742a5298a52b9f 100644 --- a/app/service/BlockchainService.js +++ b/app/service/BlockchainService.js @@ -182,6 +182,7 @@ function BlockchainService (conf, mainDAL, pair) { } let res = yield mainContext.addBlock(obj, doCheck); yield pushStatsForBlocks([res]); + yield Q.nfcall(that.stopPoWThenProcessAndRestartPoW.bind(that)); return res; } else { // add it as side chain