Skip to content

Commit 8ce91cc

Browse files
committed
f - Remove the heebie-jeebies
1 parent 2bf6e69 commit 8ce91cc

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
@@ -115,7 +115,7 @@ impl ValidatedBlockHeader {
115115
if let Network::Bitcoin = network {
116116
if self.height % 2016 == 0 {
117117
let previous_work = previous_header.header.work();
118-
if work > previous_work << 2 || work < previous_work >> 2 {
118+
if work > (previous_work << 2) || work < (previous_work >> 2) {
119119
return Err(BlockSourceError::persistent("invalid difficulty transition"))
120120
}
121121
} else if self.header.bits != previous_header.header.bits {

0 commit comments

Comments
 (0)