Commit d843449b authored by yann300's avatar yann300

use cache event if not complete

parent ea44e8a4
...@@ -109,8 +109,8 @@ function storageRangeInternal (self, start, fullStorage, tx, stepIndex, callback ...@@ -109,8 +109,8 @@ function storageRangeInternal (self, start, fullStorage, tx, stepIndex, callback
if (!util.web3.debug.storageRangeAt) { if (!util.web3.debug.storageRangeAt) {
callback('no storageRangeAt endpoint found') callback('no storageRangeAt endpoint found')
} else { } else {
if (self.isComplete(address)) { var cached = fromCache(self, address, start)
var cached = fromCache(self, address) if (cached) {
self.accumulateStorageChanges(stepIndex, address, cached, callback) self.accumulateStorageChanges(stepIndex, address, cached, callback)
} else { } else {
storageRangeWeb3Call(tx, address, start, fullStorage, (error, storage, complete) => { storageRangeWeb3Call(tx, address, start, fullStorage, (error, storage, complete) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment