Use limit to query account index.
This commit is contained in:
parent
ac231dc03e
commit
9235c969fa
@ -183,10 +183,7 @@ export class UserService {
|
|||||||
'AccountRegistry'
|
'AccountRegistry'
|
||||||
);
|
);
|
||||||
const accountIndexQuery = new AccountIndex(accountIndexAddress);
|
const accountIndexQuery = new AccountIndex(accountIndexAddress);
|
||||||
const accountAddresses: Array<string> = await accountIndexQuery.last(
|
const accountAddresses: Array<string> = await accountIndexQuery.last(limit);
|
||||||
await accountIndexQuery.totalAccounts()
|
|
||||||
);
|
|
||||||
console.log(accountAddresses);
|
|
||||||
this.loggingService.sendInfoLevelMessage(accountAddresses);
|
this.loggingService.sendInfoLevelMessage(accountAddresses);
|
||||||
for (const accountAddress of accountAddresses.slice(offset, offset + limit)) {
|
for (const accountAddress of accountAddresses.slice(offset, offset + limit)) {
|
||||||
await this.getAccountByAddress(accountAddress, limit);
|
await this.getAccountByAddress(accountAddress, limit);
|
||||||
|
Loading…
Reference in New Issue
Block a user