We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f77780 commit 54f6b6fCopy full SHA for 54f6b6f
lightning-block-sync/src/poll.rs
@@ -145,7 +145,7 @@ impl ValidatedBlockHeader {
145
let target = self.header.target();
146
let previous_target = previous_header.header.target();
147
let min_target = previous_target.min_transition_threshold();
148
- let max_target = previous_target.max_difficulty_transition_threshold();
+ let max_target = previous_target.max_transition_threshold_unchecked();
149
if target > max_target || target < min_target {
150
return Err(BlockSourceError::persistent("invalid difficulty transition"));
151
}
0 commit comments