From 1114e56b42b476709141ea52e94013b504d70fe3 Mon Sep 17 00:00:00 2001 From: pinpong Date: Sun, 13 Aug 2017 16:00:23 +0200 Subject: [PATCH] updated getAccountData --- src/main/java/jota/IotaAPI.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/main/java/jota/IotaAPI.java b/src/main/java/jota/IotaAPI.java index 418c9d7..5cc5637 100644 --- a/src/main/java/jota/IotaAPI.java +++ b/src/main/java/jota/IotaAPI.java @@ -732,24 +732,8 @@ public class IotaAPI extends IotaAPICore { throws InvalidBundleException, ArgumentException, InvalidSignatureException, InvalidTrytesException, InvalidSecurityLevelException, InvalidAddressException, NoInclusionStatesException, NoNodeInfoException { - StopWatch stopWatch = new StopWatch(); - // validate seed - if ((!InputValidator.isValidSeed(seed))) { - throw new IllegalStateException("Invalid Seed"); - } - - if (security < 1 || security > 3) { - throw new InvalidSecurityLevelException(); - } - - // If start value bigger than end, return error - // or if difference between end and start is bigger than 500 keys - if (start > end || end > (start + 500)) { - throw new IllegalStateException("Invalid inputs provided"); - } - GetNewAddressResponse gna = getNewAddress(seed, security, index, checksum, total, returnAll); GetTransferResponse gtr = getTransfers(seed, security, start, end, inclusionStates); GetBalancesAndFormatResponse gbr = getInputs(seed, security, start, end, threshold);