Skip to content

Commit 2805e54

Browse files
committed
A FIXME was removed
1 parent 490f20b commit 2805e54

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

p2p/src/sync/chainstate_handle.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@ impl ChainstateHandle {
5050
self.handle.call(move |cs| func(cs)).await?
5151
}
5252

53-
// FIXME: here we call cs.is_initial_block_download if the previous result was true,
54-
// but stop doing it once it becomes false.
55-
// The original implementation though used to go further with the optimization, always
56-
// returning the cached value and updating it in the NewTip event handler.
57-
// Technically, we could do it here too, e.g. by moving sync::subscribe_to_new_tip to
58-
// this struct. But does it make sense?
5953
pub async fn is_initial_block_download(&self) -> crate::Result<bool> {
6054
// Note: is_initial_block_download can only go from true to false.
6155
if !self.is_initial_block_download.load() {

0 commit comments

Comments
 (0)