Commit d843449b authored by yann300's avatar yann300

use cache event if not complete

parent ea44e8a4
......@@ -109,9 +109,9 @@ function storageRangeInternal (self, start, fullStorage, tx, stepIndex, callback
if (!util.web3.debug.storageRangeAt) {
callback('no storageRangeAt endpoint found')
} else {
if (self.isComplete(address)) {
var cached = fromCache(self, address)
self.accumulateStorageChanges(stepIndex, address, cached, callback)
var cached = fromCache(self, address, start)
if (cached) {
self.accumulateStorageChanges(stepIndex, address, cached, callback)
} else {
storageRangeWeb3Call(tx, address, start, fullStorage, (error, storage, complete) => {
if (error) {
......
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