chain: minor.
This commit is contained in:
parent
19f0f42717
commit
6893d5aa99
@ -2133,16 +2133,14 @@ Chain.prototype.getState = async function getState(prev, deployment) {
|
|||||||
}
|
}
|
||||||
case thresholdStates.STARTED: {
|
case thresholdStates.STARTED: {
|
||||||
let time = await entry.getMedianTime();
|
let time = await entry.getMedianTime();
|
||||||
let block, count;
|
let block = entry;
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
if (time >= deployment.timeout) {
|
if (time >= deployment.timeout) {
|
||||||
state = thresholdStates.FAILED;
|
state = thresholdStates.FAILED;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
block = entry;
|
|
||||||
count = 0;
|
|
||||||
|
|
||||||
for (let i = 0; i < period; i++) {
|
for (let i = 0; i < period; i++) {
|
||||||
if (block.hasBit(bit))
|
if (block.hasBit(bit))
|
||||||
count++;
|
count++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user