-
Notifications
You must be signed in to change notification settings - Fork 390
fix(docs): merge_chains
outdated documentation
#1806
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
base: master
Are you sure you want to change the base?
fix(docs): merge_chains
outdated documentation
#1806
Conversation
7b166bf
to
5efa472
Compare
5efa472
to
50b036c
Compare
- it's a small fix for `merge_chains` docs, reported on audit. - adds an `Errors` section to cover what scenarios it can fail.
50b036c
to
166a8f9
Compare
@ValuedMammal Great, thanks for the suggestions! I've rebased the branch and applied the suggestions. |
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.
ACK 166a8f9
@@ -545,31 +545,44 @@ impl std::error::Error for ApplyHeaderError {} | |||
|
|||
/// Applies `update_tip` onto `original_tip`. | |||
/// | |||
/// On success, a tuple is returned `(changeset, can_replace)`. If `can_replace` is true, then the | |||
/// `update_tip` can replace the `original_tip`. | |||
/// On success, a tuple is returned ([`CheckPoint`], [`ChangeSet`]). |
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.
/// On success, a tuple is returned ([`CheckPoint`], [`ChangeSet`]). | |
/// On success, a tuple is returned ([`CheckPoint`], [`ChangeSet`]). A [`CannotConnectError`] occurs when the `original_tip` and `update_tip` chains are disjoint. |
I'd move the rest of the explanation for CannotConnectError
to that type's doc.
But I don't want to bike-shed it too much so I'll also ACK this as is and you decide.
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.
ACK 166a8f9
Description
It's a minor documentation fix, as reported during the audit and referenced in bitcoindevkit/bdk_wallet#59.
Notes to the reviewers
I'm unsure if anything else / any other explanation should be included in the documentation. Let me know if you think more context should be added to it.
Changelog notice
bdk_chain::local_chain::merge_chains
documentation.Checklists
All Submissions:
cargo fmt
andcargo clippy
before committing