forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Print initial scanning status every 15 seconds
The initial transaction scanning can easily take several minutes, maybe longer, and the user should not have the impression the program froze.
- Loading branch information
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3d4e079
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think (purely subjective here) 30, maybe even 60 seconds would be a more appropriate figure - mainnet takes roughly 45 to 60 minutes for a full parse from scratch on average hardware so every 15 seconds would be ~250 "Still scanning" updates - again purely subjective but that seems perhaps a bit excessive.
Also did you take a look at putting this into splash? That would be extremely beneficial also - I can take a nose around if you like :)
3d4e079
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hehe, maybe I'm too impatient, but 60 seconds feels definitely too long. 30 seconds is probably a fine middle ground then.
I haven't really looked into the splash screen yet, but the wallet uses a Boost signal
ShowProgress(const std::string &title, int nProgress)
, which actually looks pretty useable.3d4e079
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
30 sounds good :)
You should just be able to use the existing methods mate, haven't tested but you should be able to include
ui_interface.h
and then useInitMessage
(eguiInterface.InitMessage(_("Parsing Omni Layer transactions (block n of m)..."));