diff --git a/nimbus/db/accounts_cache.nim b/nimbus/db/accounts_cache.nim index 5fcaa2ca3..770fa268a 100644 --- a/nimbus/db/accounts_cache.nim +++ b/nimbus/db/accounts_cache.nim @@ -145,13 +145,8 @@ proc isEmpty(acc: RefAccount): bool = acc.account.balance.isZero and acc.account.nonce == 0 -proc exists(acc: RefAccount): bool = - if IsAlive notin acc.flags: - return false - if IsClone in acc.flags: - result = true - else: - result = IsNew notin acc.flags +template exists(acc: RefAccount): bool = + IsAlive in acc.flags template createTrieKeyFromSlot(slot: UInt256): auto = # XXX: This is too expensive. Similar to `createRangeFromAddress`