Closed gpBlockchain closed 1 month ago
it's not an issue, the flag to check the termination condition is channels.len() == 0
, not last_cursor == 0x0
.
from the implementation view, it's also not trivial to fix it since we always need to select limit + 1
to make sure there are more elements, it is not worth for it.
ckb
's pagination also works in current way.
When iterating to the last page, the returned last_cursor is not 0x. It will waste the user an additional query