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 ed3b9f3 commit 79e79d3Copy full SHA for 79e79d3
sync/src/block/downloader/header.rs
@@ -74,7 +74,9 @@ impl HeaderDownloader {
74
}
75
76
pub fn update(&mut self, total_score: U256, best_hash: H256) -> bool {
77
- if self.total_score < total_score {
+ if self.total_score == total_score {
78
+ true
79
+ } else if self.total_score < total_score {
80
self.total_score = total_score;
81
self.best_hash = best_hash;
82
0 commit comments