mirror of
https://github.com/Qortal/qortal.git
synced 2025-05-06 01:37:51 +00:00
Return empty levels in GET /addresses/online/levels
This commit is contained in:
parent
7080b55aac
commit
c35c7180d4
@ -205,6 +205,10 @@ public class AddressesResource {
|
|||||||
try (final Repository repository = RepositoryManager.getRepository()) {
|
try (final Repository repository = RepositoryManager.getRepository()) {
|
||||||
List<OnlineAccountLevel> onlineAccountLevels = new ArrayList<>();
|
List<OnlineAccountLevel> onlineAccountLevels = new ArrayList<>();
|
||||||
|
|
||||||
|
// Prepopulate all levels
|
||||||
|
for (int i=0; i<=10; i++)
|
||||||
|
onlineAccountLevels.add(new OnlineAccountLevel(i, 0));
|
||||||
|
|
||||||
for (OnlineAccountData onlineAccountData : onlineAccounts) {
|
for (OnlineAccountData onlineAccountData : onlineAccounts) {
|
||||||
try {
|
try {
|
||||||
final int minterLevel = Account.getRewardShareEffectiveMintingLevelIncludingLevelZero(repository, onlineAccountData.getPublicKey());
|
final int minterLevel = Account.getRewardShareEffectiveMintingLevelIncludingLevelZero(repository, onlineAccountData.getPublicKey());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user