This commit is contained in:
ligi 2014-12-24 23:56:33 +01:00
parent b1c82cb59e
commit 06bc7323ca
1 changed files with 3 additions and 7 deletions

View File

@ -69,16 +69,12 @@ public class RepositoryTrack implements Repository {
@Override
public boolean isExist(byte[] addr) {
boolean exist = false;
AccountState accountState = cacheAccounts.get(wrap(addr));
if (accountState != null && !accountState.isDeleted()) exist = true;
if (accountState != null) return !accountState.isDeleted();
if (accountState == null){
accountState = repository.getAccountState(addr);
if (accountState != null && !accountState.isDeleted()) exist = true;
}
accountState = repository.getAccountState(addr);
return accountState != null && !accountState.isDeleted();
return exist;
}