Commit 7641c37d authored by yann300's avatar yann300

don't cache zero slot

parent cd9dd859
...@@ -66,7 +66,7 @@ function storageRangeInternal (self, slotKey, tx, stepIndex, address, callback) ...@@ -66,7 +66,7 @@ function storageRangeInternal (self, slotKey, tx, stepIndex, address, callback)
if (error) { if (error) {
return callback(error) return callback(error)
} }
if (!storage[slotKey]) { if (!storage[slotKey] && slotKey !== zeroSlot) { // we don't cache the zero slot (could lead to inconsistency)
storage[slotKey] = { storage[slotKey] = {
key: slotKey, key: slotKey,
value: zeroSlot value: zeroSlot
......
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