@@ -1059,20 +1059,12 @@ public AbstractResponse broadcastTransactionsStatement(List<String> trytes) {
1059
1059
*
1060
1060
* @param addresses Address for which to get the balance (do not include the checksum)
1061
1061
* @param tips The optional tips to find the balance through.
1062
- * @param threshold The confirmation threshold between 0 and 100(inclusive).
1063
- * Should be set to 100 for getting balance by counting only confirmed transactions.
1064
1062
* @return {@link com.iota.iri.service.dto.GetBalancesResponse}
1065
1063
* @throws Exception When the database has encountered an error
1066
1064
**/
1067
1065
@ Document (name ="getBalances" )
1068
1066
private AbstractResponse getBalancesStatement (List <String > addresses ,
1069
- List <String > tips ,
1070
- int threshold ) throws Exception {
1071
-
1072
- if (threshold <= 0 || threshold > 100 ) {
1073
- return ErrorResponse .create ("Illegal 'threshold'" );
1074
- }
1075
-
1067
+ List <String > tips ) throws Exception {
1076
1068
final List <Hash > addressList = addresses .stream ()
1077
1069
.map (address -> (HashFactory .ADDRESS .create (address )))
1078
1070
.collect (Collectors .toCollection (LinkedList ::new ));
@@ -1527,10 +1519,8 @@ private Function<Map<String, Object>, AbstractResponse> getBalances() {
1527
1519
final List <String > tips = request .containsKey ("tips" ) ?
1528
1520
getParameterAsList (request ,"tips" , HASH_SIZE ):
1529
1521
null ;
1530
- final int threshold = getParameterAsInt (request , "threshold" );
1531
-
1532
1522
try {
1533
- return getBalancesStatement (addresses , tips , threshold );
1523
+ return getBalancesStatement (addresses , tips );
1534
1524
} catch (Exception e ) {
1535
1525
throw new IllegalStateException (e );
1536
1526
}
0 commit comments