accounts icon indicating copy to clipboard operation
accounts copied to clipboard

The KeyManagementBackedAccountService implementation fails to retrieve the accounts when the number of accounts exceeds DEFAULT_PAGE_SIZE

Open mevir opened this issue 4 years ago • 0 comments

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 vault DEFAULT_PAGE_SIZE
  • ourAccounts() - when the number of accounts for hosted by the node is greater than the vault DEFAULT_PAGE_SIZE
  • allAccounts() - when the total number of accounts in the node is greater than the vault DEFAULT_PAGE_SIZE

mevir avatar Jul 27 '20 10:07 mevir