Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Document lockout_intervals and tiny niceties #10925

Merged
merged 1 commit into from
Jul 6, 2020

Conversation

ryoqun
Copy link
Contributor

@ryoqun ryoqun commented Jul 6, 2020

Problem

lockout_intervals's data shape is a bit unusual.

Summary of Changes

Document it and extra some niceties.

No functional change.

Context: #10718

@ryoqun ryoqun added the automerge Merge this Pull Request automatically once CI passes label Jul 6, 2020
@@ -14,7 +14,9 @@ use std::{
sync::{Arc, RwLock},
};

pub(crate) type LockoutIntervals = BTreeMap<Slot, Vec<(Slot, Rc<Pubkey>)>>;
type VotedSlot = Slot;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if I say this, rustc still use u64 due to rust-lang/rust#17164. But better than nothing. :)

@codecov
Copy link

codecov bot commented Jul 6, 2020

Codecov Report

Merging #10925 into master will increase coverage by 0.0%.
The diff coverage is 66.6%.

@@           Coverage Diff           @@
##           master   #10925   +/-   ##
=======================================
  Coverage    82.0%    82.0%           
=======================================
  Files         310      310           
  Lines       71884    71884           
=======================================
+ Hits        58949    58954    +5     
+ Misses      12935    12930    -5     

@mergify mergify bot merged commit 9269797 into solana-labs:master Jul 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant