-
Notifications
You must be signed in to change notification settings - Fork 105
NTX builder may be loading duplicate IDs #1868
Copy link
Copy link
Closed
Description
While reviewing #1843, I saw that the ntx-builder startup preload path may not be using GetNetworkAccountIds fully correctly.
GetNetworkAccountIds returns PaginationInfo, and the store side treats pagination_info.block_num as the last fully included block in the page, as documented in the query function and returned by the store server. However, the ntx-builder client resumes from that same block in store instead of block_num + 1, while the underlying DB query uses an inclusive lower bound, which means the page requests overlap.
I am not sure this is a bug at all, but currently it seems that the pagination semantics are not being followed and the response could contain overlapping data. cc @SantiagoPittella to confirm
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels