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 2bf6e69 commit 8ce91ccCopy full SHA for 8ce91cc
lightning-block-sync/src/poll.rs
@@ -115,7 +115,7 @@ impl ValidatedBlockHeader {
115
if let Network::Bitcoin = network {
116
if self.height % 2016 == 0 {
117
let previous_work = previous_header.header.work();
118
- if work > previous_work << 2 || work < previous_work >> 2 {
+ if work > (previous_work << 2) || work < (previous_work >> 2) {
119
return Err(BlockSourceError::persistent("invalid difficulty transition"))
120
}
121
} else if self.header.bits != previous_header.header.bits {
0 commit comments