mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-14 19:25:48 +00:00
removed import that was put in by accident on a merge
This commit is contained in:
parent
5a691762ed
commit
bbf2787ba4
@ -1241,6 +1241,39 @@ public class HSQLDBAccountRepository implements AccountRepository {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<AddressLevelPairing> getAddressLevelPairings(int minLevel) throws DataException {
|
||||||
|
|
||||||
|
StringBuffer accLevelSql = new StringBuffer(51);
|
||||||
|
|
||||||
|
accLevelSql.append( "SELECT account,level FROM ACCOUNTS WHERE level >= ?" );
|
||||||
|
|
||||||
|
try {
|
||||||
|
ResultSet accountLevelResultSet = this.repository.checkedExecute(accLevelSql.toString(),minLevel);
|
||||||
|
|
||||||
|
List<AddressLevelPairing> addressLevelPairings;
|
||||||
|
|
||||||
|
if( accountLevelResultSet == null ) {
|
||||||
|
addressLevelPairings = new ArrayList<>(0);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
addressLevelPairings = new ArrayList<>();
|
||||||
|
|
||||||
|
do {
|
||||||
|
AddressLevelPairing pairing
|
||||||
|
= new AddressLevelPairing(
|
||||||
|
accountLevelResultSet.getString(1),
|
||||||
|
accountLevelResultSet.getInt(2)
|
||||||
|
);
|
||||||
|
addressLevelPairings.add(pairing);
|
||||||
|
} while (accountLevelResultSet.next());
|
||||||
|
}
|
||||||
|
return addressLevelPairings;
|
||||||
|
} catch (SQLException e) {
|
||||||
|
throw new DataException("Can't get addresses for this level from blockchain data", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Produce Sponsorship Report
|
* Produce Sponsorship Report
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user