-
Notifications
You must be signed in to change notification settings - Fork 312
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
Add test for inserting anchor without tx #961
base: master
Are you sure you want to change the base?
Conversation
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.
Thanks for the work so far. Remember that we also want to test recovering the appended additions into a new graph. Refer to #958 (comment)
e4bdd6d
to
df0b541
Compare
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.
Good work so far. Few notes.
- Ensure CI passes.
- Ensure GitHub can verify your commits (Maybe you need to give your PGP or SSH public key to GitHub?).
- Please rebase your commits into one.
- Use loops where you can (for example if you are inserting multiple anchors or multiple txs).
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.
A few improvements can be made:
- Fix the warnings
cargo clippy
is throwing - Use a more descriptive commit message. Instead of "tests for issue958", describe which test you're adding in the title, and add "Partially fixes More tests for
IndexedTxGraph
andTxGraph
#958" in the description. In general, it should be possible to understand what a commit is doing from the title/description without having to open github
The rest looks good to me.
Test inserting anchors without the corresponding transaction and testing the recoverability of the transaction graph Partially fixes "More tests for IndexedTxGraph and TxGraph bitcoindevkit#958" bitcoindevkit#958
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.
Thank you again, sorry I think it will be better to reduce the scope of this test.
Since it looks like still a bit of work today I'm moving this out of the alpha.1 milestone. |
I do not understand what is missing here. The workflows failed because of this Just tested the workflows locally and it seams to work now. |
Hey @remix7531, sorry for the late response! I think you encountered a problem with our CI, that's why it would work locally but fail here. Can you try rebasing? |
Is this something still needed for 1.0.0-beta milestone ? (cc @notmandatory @ValuedMammal) I got a bit confused because I noticed that the #958 issue already has been closed but without the tests covered by this PR. |
I think it wouldn't hurt to have a test similar to this |
This testing could help with verifying sqlite schema question in #1712 |
Description
This adds a test case described in issue958
All Submissions:
cargo fmt
andcargo clippy
before committing