From ddeffc1df074426fbf64d4f3a5d43be55c670a5e Mon Sep 17 00:00:00 2001 From: Alon Muroch Date: Thu, 11 Sep 2014 23:14:05 +0300 Subject: [PATCH] accounts iterator --- .../src/main/java/org/ethereum/db/RepositoryImpl.java | 2 +- .../src/main/java/org/ethereum/gui/AccountsListWindow.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ethereumj-core/src/main/java/org/ethereum/db/RepositoryImpl.java b/ethereumj-core/src/main/java/org/ethereum/db/RepositoryImpl.java index 60a3ee18..3123f39b 100644 --- a/ethereumj-core/src/main/java/org/ethereum/db/RepositoryImpl.java +++ b/ethereumj-core/src/main/java/org/ethereum/db/RepositoryImpl.java @@ -483,7 +483,7 @@ public class RepositoryImpl implements Repository { } } - public DBIterator getContractDetailsDBIterator() { + public DBIterator getAccountsIterator() { return detailsDB.iterator(); } diff --git a/ethereumj-studio/src/main/java/org/ethereum/gui/AccountsListWindow.java b/ethereumj-studio/src/main/java/org/ethereum/gui/AccountsListWindow.java index e292fa55..2f5b7840 100755 --- a/ethereumj-studio/src/main/java/org/ethereum/gui/AccountsListWindow.java +++ b/ethereumj-studio/src/main/java/org/ethereum/gui/AccountsListWindow.java @@ -58,7 +58,7 @@ public class AccountsListWindow extends JFrame { @Override public void run(){ - DBIterator i = WorldManager.getInstance().getRepository().getContractDetailsDBIterator(); + DBIterator i = WorldManager.getInstance().getRepository().getAccountsIterator(); while(i.hasNext()) { DataClass dc = new DataClass(); dc.address = i.next().getKey();