Comparing version 0.7.2 to 0.7.3
17
index.js
@@ -776,3 +776,7 @@ /** | ||
if (!mining || mining.error) { | ||
self.miner("stop", [], function () { callback(mining); }); | ||
try { | ||
self.miner("stop", [], function () { callback(mining); }); | ||
} catch (exc) { | ||
console.warn("no miner access"); | ||
} | ||
} | ||
@@ -787,7 +791,12 @@ (function fastforward() { | ||
if (blockNumber >= endBlock) { | ||
return self.miner("stop", [], function () { | ||
try { | ||
self.miner("stop", [], function () { | ||
callback(endBlock); | ||
}); | ||
} catch (exc) { | ||
callback(endBlock); | ||
}); | ||
} | ||
} else { | ||
setTimeout(fastforward, 500); | ||
} | ||
setTimeout(fastforward, 500); | ||
}); | ||
@@ -794,0 +803,0 @@ })(); |
{ | ||
"name": "ethrpc", | ||
"version": "0.7.2", | ||
"version": "0.7.3", | ||
"description": "Ethereum JSON RPC", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
617408
11497