Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
gakonst committed Feb 11, 2023
1 parent 7aedee6 commit 1a139ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/primitives/src/chain/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,9 @@ impl ForkCondition {
/// of a current block.
///
/// The fork is considered active if the _previous_ total difficulty is above the threshold.
/// To achieve that, we subtract the passed `difficulty` from the current block's total difficulty,
/// and check if it's above the Fork Condition's total difficulty (here: 58_750_000_000_000_000_000_000)
/// To achieve that, we subtract the passed `difficulty` from the current block's total
/// difficulty, and check if it's above the Fork Condition's total difficulty (here:
/// 58_750_000_000_000_000_000_000)
///
/// This will return false for any condition that is not TTD-based.
pub fn active_at_ttd(&self, ttd: U256, difficulty: U256) -> bool {
Expand Down

0 comments on commit 1a139ea

Please sign in to comment.