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 66f4943 commit 93aa776Copy full SHA for 93aa776
sync/src/block/downloader/header.rs
@@ -62,6 +62,10 @@ impl HeaderDownloader {
62
}
63
64
65
+ pub fn update_pivot(&mut self, hash: BlockHash) {
66
+ self.pivot = hash;
67
+ }
68
+
69
pub fn best_hash(&self) -> BlockHash {
70
self.best_hash
71
sync/src/block/extension.rs
@@ -1048,6 +1048,10 @@ impl Extension {
1048
1049
fn transition_to_full(&mut self) {
1050
cdebug!(SYNC, "Transitioning state to {:?}", State::Full);
1051
+ let best_hash = self.client.best_block_header().hash();
1052
+ for downloader in self.header_downloaders.values_mut() {
1053
+ downloader.update_pivot(best_hash);
1054
1055
self.state = State::Full;
1056
1057
0 commit comments