mirror of
https://github.com/Qortal/qortal.git
synced 2025-06-22 07:01:21 +00:00
Return empty levels in GET /addresses/online/levels
This commit is contained in:
parent
27104a6b76
commit
d7d0848e90
@ -205,6 +205,10 @@ public class AddressesResource {
|
||||
try (final Repository repository = RepositoryManager.getRepository()) {
|
||||
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) {
|
||||
try {
|
||||
final int minterLevel = Account.getRewardShareEffectiveMintingLevelIncludingLevelZero(repository, onlineAccountData.getPublicKey());
|
||||
|
Loading…
x
Reference in New Issue
Block a user