accounts
accounts copied to clipboard
The KeyManagementBackedAccountService implementation fails to retrieve the accounts when the number of accounts exceeds DEFAULT_PAGE_SIZE
The
net.corda.core.node.services.VaultQueryException:
There are <n> results, which exceeds the limit of 200 for queries that do not specify paging. In order to retrieve these results, provide a `PageSpecification(pageNumber, pageSize)` to the method invoked.
exception is thrown by the following functions implemented in the KeyManagementBackedAccountService
:
-
accountsForHost(host: Party)
- when the number of accounts for host is greater than the vaultDEFAULT_PAGE_SIZE
-
ourAccounts()
- when the number of accounts for hosted by the node is greater than the vaultDEFAULT_PAGE_SIZE
-
allAccounts()
- when the total number of accounts in the node is greater than the vaultDEFAULT_PAGE_SIZE