-
Notifications
You must be signed in to change notification settings - Fork 294
interface: Expose load utxo snapshot functionality #869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
interface: Expose load utxo snapshot functionality #869
Conversation
Expose load/activate AssumeUTXO snapshot functionaility so that it can be laoded trhough the GUI.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process. |
friendly ping @Sjors |
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.
There's no consumer of this on the bitcoin-core/gui side, can you show this works with some sort of POC on the bitcoin-core/gui side?
How do we know this works
Great idea! Just updated the description with a link to a POC and screenshots... |
@D33r-Gee I'm a bit confused what the plan is here. Do you intend to implement this feature in the current GUI, or only in the QML project? If the plan is to implement it here, which would be great, I would suggest opening two pull requests:
Just having an interface change commit without the code that uses it, probably won't get merged. It might be fine to have a working demo in the QML demo and point to that from (2). However my guess is that it still won't get merged until the QML gui itself is closer to readiness (as a replacement for the current GUI, or a standalone project). There's a general reluctance to merging code that isn't being actively used (yet). |
Thank you for your response and for clarifying the path forward. I apologize for the confusion on my part regarding the intended repository for the interface change. Following your comment in QML PR #424, I incorrectly assumed you meant It's encouraging to hear that there's interest in potentially exposing the AssumeUTXO functionality to the QWidget GUI To ensure I have the steps correct going forward: The QML PRs should first be merged into the |
@D33r-Gee as we discussed a while ago, this is part (ultimately) of the qml change-set, when qml is ready and it is being up-streamed, this feature, which you find useful as part of the qml change-set, would then be packaged up as part of the PR's integrating this into core. This wouldn't be integrated into the qt widgets gui if qml is to replace it. As is, this should be closed because the qt widgets gui can't use it, so this function goes to no-one. |
Thank you for explaining the relationship between this interface change and the QML project so clearly. I see now that my timing was off, and this change is contingent upon the QML GUI being ready for upstreaming, not a standalone addition for the current GUI. Just to ensure I've fully grasped the workflow: The steps involve getting the QML PRs merged into |
@D33r-Gee no, your interface changes are part of what gets merged into the qml repo. It is part of the changeset to implement your assumeutxo work -> in the qml repo all in the qml repo. Then the process of packaging it up to upstream is, primarily, outside of your concern. I am just mentioning this to show why this shouldn't be open here. |
Expose load/activate AssumeUTXO snapshot functionality so that it can be loaded through the GUI.
This can be tested and viewed in action in the qml repository with legacy code (bitcoin-core/gui-qml#424)
Also for further examination please check out the POC branch
POC Ubuntu Screenshots `signet`
Launch bitcoin-qt on
signet
Navigate to Settings -> Options
Click the "Load Snapshot..." button
Navigate to where your snapshot file is. The snapshot was downloaded from here
Click "Yes"
Wait for the snapshot to load and for this pop-up to appear and click "Ok"
Verify the "chain_snapshot" directory is present in your
datadir