chain: minor.
This commit is contained in:
parent
19f0f42717
commit
6893d5aa99
1 changed files with 2 additions and 4 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue