Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Pending RPC to sort by absolute amounts when returning a subset #3060

Merged
merged 1 commit into from
Jan 7, 2021

Conversation

wezrule
Copy link
Contributor

@wezrule wezrule commented Dec 3, 2020

@Joohansson saw strange results when using sorting + count for the RPC. It currently only iterates and sorts over the first n count of pending blocks which is just in ascending order of the block hash. This PR changes it to iterate over all pending blocks and then return count partial sorted results back. This I what I think would be the expected behaviour

@wezrule wezrule added quality improvements This item indicates the need for or supplies changes that improve maintainability rpc Changes related to Remote Procedure Calls labels Dec 3, 2020
@wezrule wezrule added this to the V22.0 milestone Dec 3, 2020
@wezrule wezrule requested a review from SergiySW December 3, 2020 12:11
@wezrule wezrule self-assigned this Dec 3, 2020
@wezrule wezrule added breaking Change to node APIs (separate label) which impacts existing implementation, integrations impacted. documentation This item indicates the need for or supplies updated or expanded documentation labels Dec 4, 2020
@wezrule wezrule merged commit 7b85388 into nanocurrency:develop Jan 7, 2021
@wezrule wezrule deleted the pending_rpc_sort branch January 7, 2021 16:58
@zhyatt zhyatt mentioned this pull request Feb 9, 2021
20 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
breaking Change to node APIs (separate label) which impacts existing implementation, integrations impacted. documentation This item indicates the need for or supplies updated or expanded documentation quality improvements This item indicates the need for or supplies changes that improve maintainability rpc Changes related to Remote Procedure Calls
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants