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 6cb5976 commit 13381caCopy full SHA for 13381ca
stackslib/src/net/download/nakamoto/download_state_machine.rs
@@ -678,6 +678,7 @@ impl NakamotoDownloadStateMachine {
678
neighbors: &[NeighborAddress],
679
) -> Option<u64> {
680
match self.state {
681
+ // Still in IBD mode, so we can only get the max height from the confirmed tenure downloads
682
NakamotoDownloadState::Confirmed => self
683
.tenure_downloads
684
.downloaders
@@ -690,6 +691,7 @@ impl NakamotoDownloadStateMachine {
690
691
.map(|end_block| end_block.header.chain_length + 1)
692
})
693
.max(),
694
+ // In steady-state mode, we can get the max height from the unconfirmed tenure downloads
695
NakamotoDownloadState::Unconfirmed => neighbors
696
.iter()
697
.filter_map(|neighbor_addr| {
0 commit comments