HomePhabricator

[avalanche] Use the ProofComparator for sets and maps

Description

[avalanche] Use the ProofComparator for sets and maps

Summary: There are places where the comparator is not important as long as the ordering is consistent, and the default comparator is used. This assumes that the key actually has a default comparator. This diff adds a simple comparator and makes explicit use of it where possible so updating the key type will not be an issue as long as it is managed by the comparator. There is no change in behavior.

Test Plan:

ninja check-avalanche

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D11463

Details

Provenance
FabienAuthored on May 14 2022, 01:48
FabienPushed on May 19 2022, 18:27
Reviewer
Restricted Project
Differential Revision
D11463: [avalanche] Use the ProofComparator for sets and maps
Parents
rABC55e8d25097ba: [radix] Adds the capability to use an adapter for key manipulation
Branches
Unknown
Tags
Unknown