fn cmp_requests_by_priority(
a: &(SnapshotRequest, AccountsPackageType),
b: &(SnapshotRequest, AccountsPackageType)
) -> Ordering
Expand description
Compare snapshot requests; used to pick the highest priority request to handle.
Priority, from highest to lowest:
- Epoch Accounts Hash
- Full Snapshot
- Incremental Snapshot
- Accounts Hash Verifier
If two requests of the same type are being compared, their bank slots are the tiebreaker.