tui: re-probe chain height while the node screen is up #181
Loading…
Reference in a new issue
No description provided.
Delete branch "wt/tui-sync-status"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The F7 NODE row was a snapshot taken when the wallet child started. Ctrl-R only re-read that cache, so a syncing in-process daemon looked frozen (height stuck, while get_info on 127.0.0.1:18081 kept moving).
The event loop now calls wallet_child_refresh about once a second while F7 or the wallet screen is up. The probe runs off the UI thread. When it finishes, the NODE row is rewritten from the new height and target. Ctrl-R starts a probe instead of reprinting the cache.
Proof: cargo test --locked --lib the_setup_screen_sync_line_follows_a_later_probe (pass). cargo clippy --locked --lib --tests -- -D warnings (pass). wallet_setup_config_tests: 28 passed.