Skip to content

qt: refresh Ord index after new blocks - #2

Closed
Joopooranski wants to merge 4 commits into
StanCan321:codex/ord-pr1-testsfrom
Joopooranski:joop-ord-refresh
Closed

Joopooranski wants to merge 4 commits into
StanCan321:codex/ord-pr1-testsfrom
Joopooranski:joop-ord-refresh

Conversation

@Joopooranski

Copy link
Copy Markdown

Follow-up to bitcoindogmode#12 and my Ord index lifecycle review. The current GUI starts ord index update once and stops its synchronization timer. Because the command exits, later blocks remain unindexed until Bitcoin Qt restarts.

Keep the 30-second timer running, track the Bitcoin best-block hash, and run another Ord update when the tip changes, including a same-height reorganization. Skip checks while Ord is already indexing and show the initial success notification only once. Document this behavior in doc/ord.md.

Validation: git diff --check passed. The changed bitcoin.cpp.o and ordmanager.cpp.o compiled on Ubuntu 24.04 with Qt 6.4.2 in a wallet-disabled GUI configuration that also included the separate Qt Network fix from #1. A full test_bitcoin-qt link failed locally with unresolved symbols in the build; I have not run a GUI end-to-end test of automatic refresh. This follow-up needs runtime review before merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant