gui-qml icon indicating copy to clipboard operation
gui-qml copied to clipboard

Handle pre & headers sync states, add header verification to Block Clock verification progress

Open jarolrod opened this issue 2 years ago • 4 comments

This connects us to the header tip signal so that we can handle when the node is in pre & or headers sync. This calculates the progress of the pre or headers sync and adds it to our verification progress. Pre and headers sync take up 1% of verification progress each, then IBD begins at 2% progress as displayed on the block clock.

Windows Intel macOS Apple Silicon macOS ARM64 Android

jarolrod avatar Feb 28 '23 07:02 jarolrod

Updated from ea58e24 to 6bfccd9, compare

Changes:

  • fix verification progress update math so that it doesn't go to 102 (verification progress + header progress) and now finishes at 100
  • Change how we consider to be synced within the block clock's perspective from a check on if verificationProgress is large enough to a query on the node to see if it is in ibd or not. This fixes the issue described here. The issue there is that we'd get some header and that would create a certain progress, and because the check for synced was that verification progress needs to be higher than 99, the UI would get stuck in a weird spot.

jarolrod avatar Mar 01 '23 04:03 jarolrod

Concept ACK

johnny9 avatar Mar 02 '23 04:03 johnny9

need to rework, the call to isInIBD makes the UI lock up

jarolrod avatar Mar 02 '23 06:03 jarolrod

rebased over main

jarolrod avatar Sep 01 '23 02:09 jarolrod