fix state cache optimization.
This commit is contained in:
parent
c97551ba1f
commit
ea4e4b888d
@ -2201,7 +2201,7 @@ Chain.prototype.getState = function getState(prev, id, callback) {
|
||||
if (!entry)
|
||||
return walkForward(constants.thresholdStates.DEFINED);
|
||||
|
||||
if (self.stateCache[entry.hash])
|
||||
if (self.stateCache[entry.hash] != null)
|
||||
return walkForward(self.stateCache[entry.hash]);
|
||||
|
||||
return entry.getMedianTimeAsync(function(err, medianTime) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user