chain: minor.

This commit is contained in:
Christopher Jeffrey 2017-07-09 19:57:32 -07:00
parent 19f0f42717
commit 6893d5aa99
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -2133,16 +2133,14 @@ Chain.prototype.getState = async function getState(prev, deployment) {
}
case thresholdStates.STARTED: {
let time = await entry.getMedianTime();
let block, count;
let block = entry;
let count = 0;
if (time >= deployment.timeout) {
state = thresholdStates.FAILED;
break;
}
block = entry;
count = 0;
for (let i = 0; i < period; i++) {
if (block.hasBit(bit))
count++;