Skip to content

Commit 54f6b6f

Browse files
committed
Use unchecked max transition threshold.
1 parent 2f77780 commit 54f6b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning-block-sync/src/poll.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ impl ValidatedBlockHeader {
145145
let target = self.header.target();
146146
let previous_target = previous_header.header.target();
147147
let min_target = previous_target.min_transition_threshold();
148-
let max_target = previous_target.max_difficulty_transition_threshold();
148+
let max_target = previous_target.max_transition_threshold_unchecked();
149149
if target > max_target || target < min_target {
150150
return Err(BlockSourceError::persistent("invalid difficulty transition"));
151151
}

0 commit comments

Comments
 (0)