gui: display headers sync progress too in loader

Maybe we should just get rid of the filtering since there is no stability guarantees wrt logging. On the other hand we'd probably need to increase the update frequency if we do that. In the meantime at least display also the blockheaders so the sync doesn't appear to be stuck for 5 minutes at startup.
This commit is contained in:
Antoine Poinsot 2023-11-10 12:52:39 +01:00
parent d5b7a3a7de
commit 88d00ae1a3
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -322,7 +322,11 @@ impl Loader {
let last_update_tip = reader
.lines()
.into_iter()
.filter(|l| l.as_ref().map(|l| l.contains("UpdateTip")).unwrap_or(false))
.filter(|l| {
l.as_ref()
.map(|l| l.contains("UpdateTip") || l.contains("blockheaders"))
.unwrap_or(false)
})
.last();
match last_update_tip {
Some(Ok(line)) => (Message::BitcoindLog(Some(line)), log_path),