Fix incorrect maybeUpdateHashChain call

This commit is contained in:
Manfred Karrer 2019-03-18 00:26:26 -05:00
parent 2baced146b
commit 45185d3e34
No known key found for this signature in database
GPG Key ID: 401250966A6B2C46

View File

@ -139,7 +139,8 @@ public class ProposalStateMonitoringService implements DaoSetupService, DaoState
// Takes about 150 ms for dao testnet data
long ts = System.currentTimeMillis();
for (int i = genesisBlockHeight; i < blockHeight; i++) {
hashChainUpdated = hashChainUpdated || maybeUpdateHashChain(i);
boolean isHashChainUpdated = maybeUpdateHashChain(i);
hashChainUpdated = hashChainUpdated || isHashChainUpdated;
}
if (hashChainUpdated) {
log.info("updateHashChain for {} items took {} ms",