@Test public void usedAddresses() throws Exception { assertEquals(0, pocket.getUsedAddresses().size()); pocket.onConnection(getBlockchainConnection(type)); assertEquals(13, pocket.getUsedAddresses().size()); }
public Set<Address> getUsedAddresses() { lock.lock(); try { Set<Address> usedAddresses = new HashSet<Address>(); for (Map.Entry<Address, String> entry : addressesStatus.entrySet()) { if (entry.getValue() != null) { usedAddresses.add(entry.getKey()); } } return usedAddresses; } finally { lock.unlock(); } }
WalletPocketHD extends AbstractWallet { public Set<Address> getUsedAddresses() { lock.lock(); try { Set<Address> usedAddresses = new HashSet<Address>(); for (Map.Entry<Address, String> entry : addressesStatus.entrySet()) { if (entry.getValue() != null) { usedAddresses.add(entry.getKey()); } } return usedAddresses; } finally { lock.unlock(); } } }
WalletPocketHD extends AbstractWallet { public Set<Address> getUsedAddresses() { lock.lock(); try { Set<Address> usedAddresses = new HashSet<Address>(); for (Map.Entry<Address, String> entry : addressesStatus.entrySet()) { if (entry.getValue() != null) { usedAddresses.add(entry.getKey()); } } return usedAddresses; } finally { lock.unlock(); } } WalletPocketHD(DeterministicKey rootKey, CoinType coinType,
                          @Nullable KeyCrypter keyCrypter, @Nullable KeyParameter key);   WalletPocketHD(SimpleHDKeyChain keys, CoinType coinType);   WalletPocketHD(String id, SimpleHDKeyChain keys, CoinType coinType); }
WalletPocketHD extends AbstractWallet { public Set<Address> getUsedAddresses() { lock.lock(); try { Set<Address> usedAddresses = new HashSet<Address>(); for (Map.Entry<Address, String> entry : addressesStatus.entrySet()) { if (entry.getValue() != null) { usedAddresses.add(entry.getKey()); } } return usedAddresses; } finally { lock.unlock(); } } WalletPocketHD(DeterministicKey rootKey, CoinType coinType,
                          @Nullable KeyCrypter keyCrypter, @Nullable KeyParameter key);   WalletPocketHD(SimpleHDKeyChain keys, CoinType coinType);   WalletPocketHD(String id, SimpleHDKeyChain keys, CoinType coinType); int getAccountIndex(); @Override boolean isEquals(WalletAccount other); @Override boolean isEncryptable(); @Override boolean isEncrypted(); @Nullable @Override KeyCrypter getKeyCrypter(); @Override void encrypt(KeyCrypter keyCrypter, KeyParameter aesKey); @Override void decrypt(KeyParameter aesKey); SendRequest sendCoinsOffline(Address address, Coin amount); SendRequest sendCoinsOffline(Address address, Coin amount, @Nullable String password); SendRequest sendCoinsOffline(Address address, Coin amount, @Nullable KeyParameter aesKey); @Override boolean isAddressMine(Address address); @Override boolean isPubKeyHashMine(byte[] pubkeyHash); @Override boolean isWatchedScript(Script script); @Override boolean isPubKeyMine(byte[] pubkey); @Override boolean isPayToScriptHashMine(byte[] payToScriptHash); void completeAndSignTx(SendRequest request); void completeTx(SendRequest req); void signTransaction(SendRequest req); @Nullable @Override ECKey findKeyFromPubHash(byte[] pubkeyHash); @Nullable @Override ECKey findKeyFromPubKey(byte[] pubkey); @Nullable @Override RedeemData findRedeemDataFromScriptHash(byte[] bytes); @Override Address getChangeAddress(); @Override Address getReceiveAddress(); @Override Address getRefundAddress(); Address getReceiveAddress(boolean isManualAddressManagement); Address getRefundAddress(boolean isManualAddressManagement); @Nullable Address getLastUsedAddress(SimpleHDKeyChain.KeyPurpose purpose); boolean canCreateFreshReceiveAddress(); Address getFreshReceiveAddress(); Address getFreshReceiveAddress(boolean isManualAddressManagement); int getNumberIssuedReceiveAddresses(); List<Address> getIssuedReceiveAddresses(); Set<Address> getUsedAddresses(); Address getAddress(SimpleHDKeyChain.KeyPurpose purpose,
                              boolean isManualAddressManagement); List<Address> getActiveAddresses(); void markAddressAsUsed(Address address); @Override String toString(); }
WalletPocketHD extends AbstractWallet { public Set<Address> getUsedAddresses() { lock.lock(); try { Set<Address> usedAddresses = new HashSet<Address>(); for (Map.Entry<Address, String> entry : addressesStatus.entrySet()) { if (entry.getValue() != null) { usedAddresses.add(entry.getKey()); } } return usedAddresses; } finally { lock.unlock(); } } WalletPocketHD(DeterministicKey rootKey, CoinType coinType,
                          @Nullable KeyCrypter keyCrypter, @Nullable KeyParameter key);   WalletPocketHD(SimpleHDKeyChain keys, CoinType coinType);   WalletPocketHD(String id, SimpleHDKeyChain keys, CoinType coinType); int getAccountIndex(); @Override boolean isEquals(WalletAccount other); @Override boolean isEncryptable(); @Override boolean isEncrypted(); @Nullable @Override KeyCrypter getKeyCrypter(); @Override void encrypt(KeyCrypter keyCrypter, KeyParameter aesKey); @Override void decrypt(KeyParameter aesKey); SendRequest sendCoinsOffline(Address address, Coin amount); SendRequest sendCoinsOffline(Address address, Coin amount, @Nullable String password); SendRequest sendCoinsOffline(Address address, Coin amount, @Nullable KeyParameter aesKey); @Override boolean isAddressMine(Address address); @Override boolean isPubKeyHashMine(byte[] pubkeyHash); @Override boolean isWatchedScript(Script script); @Override boolean isPubKeyMine(byte[] pubkey); @Override boolean isPayToScriptHashMine(byte[] payToScriptHash); void completeAndSignTx(SendRequest request); void completeTx(SendRequest req); void signTransaction(SendRequest req); @Nullable @Override ECKey findKeyFromPubHash(byte[] pubkeyHash); @Nullable @Override ECKey findKeyFromPubKey(byte[] pubkey); @Nullable @Override RedeemData findRedeemDataFromScriptHash(byte[] bytes); @Override Address getChangeAddress(); @Override Address getReceiveAddress(); @Override Address getRefundAddress(); Address getReceiveAddress(boolean isManualAddressManagement); Address getRefundAddress(boolean isManualAddressManagement); @Nullable Address getLastUsedAddress(SimpleHDKeyChain.KeyPurpose purpose); boolean canCreateFreshReceiveAddress(); Address getFreshReceiveAddress(); Address getFreshReceiveAddress(boolean isManualAddressManagement); int getNumberIssuedReceiveAddresses(); List<Address> getIssuedReceiveAddresses(); Set<Address> getUsedAddresses(); Address getAddress(SimpleHDKeyChain.KeyPurpose purpose,
                              boolean isManualAddressManagement); List<Address> getActiveAddresses(); void markAddressAsUsed(Address address); @Override String toString();  }