fix buggy isAlive from accounts_cache
This commit is contained in:
parent
71514a0a66
commit
8a4c8c6273
|
@ -145,13 +145,8 @@ proc isEmpty(acc: RefAccount): bool =
|
||||||
acc.account.balance.isZero and
|
acc.account.balance.isZero and
|
||||||
acc.account.nonce == 0
|
acc.account.nonce == 0
|
||||||
|
|
||||||
proc exists(acc: RefAccount): bool =
|
template exists(acc: RefAccount): bool =
|
||||||
if IsAlive notin acc.flags:
|
IsAlive in acc.flags
|
||||||
return false
|
|
||||||
if IsClone in acc.flags:
|
|
||||||
result = true
|
|
||||||
else:
|
|
||||||
result = IsNew notin acc.flags
|
|
||||||
|
|
||||||
template createTrieKeyFromSlot(slot: UInt256): auto =
|
template createTrieKeyFromSlot(slot: UInt256): auto =
|
||||||
# XXX: This is too expensive. Similar to `createRangeFromAddress`
|
# XXX: This is too expensive. Similar to `createRangeFromAddress`
|
||||||
|
|
Loading…
Reference in New Issue