Skip to content

Commit

Permalink
Update consensus/fork_choice/src/fork_choice.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Hauner <paul@paulhauner.com>
  • Loading branch information
realbigsean and paulhauner authored Jul 13, 2022
1 parent d4269a1 commit 5e512f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions consensus/fork_choice/src/fork_choice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ impl CountUnrealized {
pub fn is_true(&self) -> bool {
matches!(self, CountUnrealized::True)
}

pub fn and(&self, other: CountUnrealized) -> CountUnrealized {
if self.is_true() && other.is_true() {
CountUnrealized::True
Expand Down

0 comments on commit 5e512f7

Please sign in to comment.