Skip to content

wallet: Use slices.SortFunc for sidechain ordering - #2653

Open
luangucun wants to merge 1 commit into
decred:masterfrom
luangucun:wallet/sidechain-sortfunc
Open

wallet: Use slices.SortFunc for sidechain ordering#2653
luangucun wants to merge 1 commit into
decred:masterfrom
luangucun:wallet/sidechain-sortfunc

Conversation

@luangucun

Copy link
Copy Markdown

This replaces the index-based sort.Slice callback in the sidechain ordering path with a typed slices.SortFunc comparator.

The ordering remains unchanged: sidechains are sorted by ascending block height. The typed comparator removes index capture and makes the ordering rule explicit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant