Second, the explicit dependency brings with it a separate version into the dependency tree. Removing it and instead re-using the exported one consolidates the dependency tree and helps remove duplicates.
For example, before this PR, GL had 3 separate bitcoin versions in the dependency tree.
This PR replaces the explicit
bitcoin
dependency with thelightning_signer::bitcoin
re-exported one, for two reasons:First, the explicit one it's not used. The re-exported
lightning_signer::bitcoin
is already used as such, for examplehttps://github.com/Blockstream/greenlight/blob/62ade9c53b68b8f7625725033121babb51720dbb/libs/gl-client/src/export.rs#L5-L8
Second, the explicit dependency brings with it a separate version into the dependency tree. Removing it and instead re-using the exported one consolidates the dependency tree and helps remove duplicates.
For example, before this PR, GL had 3 separate
bitcoin
versions in the dependency tree.With this PR, there are only 2 left:
Related to https://github.com/Blockstream/greenlight/issues/335