Skip to content

Bump rust-bitcoin to 0.30.0 #2124

Closed

Description

@benthecarman

Might not be a fun one 😅

bitcoindevkit/bdk#916

Activity

  1. added this to the 0.0.116 milestone on Mar 27, 2023
  2. self-assigned this
    on Apr 27, 2023
  3. wpaulino commented on Apr 28, 2023

    @wpaulino
    Contributor

    The bump in lightning-block-sync is blocked on rust-bitcoin/rust-bitcoin#1820.

  4. TheBlueMatt commented on Jun 5, 2023

    @TheBlueMatt
    Collaborator

    Turned out to be complicated and 116 has too much else going on.

  5. modified the milestones: 0.0.116, 0.0.117 on Jun 5, 2023
  6. modified the milestones: 0.0.117, 0.0.118 on Aug 31, 2023
  7. modified the milestones: 0.0.118, 0.0.119 on Oct 12, 2023
  8. tcharding commented on Nov 2, 2023

    @tcharding
    Contributor

    You guys don't really need me poking my nose in but you likely want to jump to 0.31.0 because you need left and right shift on Target. @wpaulino knows whats up. Flagging in case anyone else stumbles on this.

    ref: rust-bitcoin/rust-bitcoin#1820

  9. removed this from the 0.0.119 milestone on Nov 4, 2023
  10. tnull commented on Nov 7, 2023

    @tnull
    Contributor

    Mh, any chance this would still land for 0.0.119? BDK's 1.0 branch already updated to rust-bitcoin 0.30 a while back, so in order to start using it in LDK Node eventually, LDK would need to be API compatible with the re-exported types...

    I suspect this is also the reason why Mutiny still pins BDK 1.0.0-alpha.1, @benthecarman ?

  11. benthecarman commented on Nov 7, 2023

    @benthecarman
    ContributorAuthor

    I suspect this is also the reason why Mutiny still pins BDK 1.0.0-alpha.1, @benthecarman ?

    Yes, we can't use 0.30 until LDK does

  12. TheBlueMatt commented on Nov 7, 2023

    @TheBlueMatt
    Collaborator

    Sure, absolutely, if they get the difficulty calculation stuff over the line it can make whatever release it makes. I do not, however, think we should hold any release until this lands.

  13. tcharding commented on Nov 7, 2023

    @tcharding
    Contributor

    So you guys need rust-bitcoin/rust-bitcoin#2090 merged and backported to 0.30.1 as well as 0.31.1, right?

    I can put it at the top of my priority list.

    cc @vincenzopalazzo

  14. vincenzopalazzo commented on Nov 7, 2023

    @vincenzopalazzo
    Member

    So you guys need rust-bitcoin/rust-bitcoin#2090 merged and backported to 0.30.1 as well as 0.31.1, right?

    Is ready for review, this PR is blocking me on nakamoto, but I think I will have a followup regarding the API.

  15. wpaulino commented on Nov 15, 2023

    @wpaulino
    Contributor

    With 0.31.0, we already have all we need. We don't need rust-bitcoin/rust-bitcoin#2090.

  16. tcharding commented on Nov 15, 2023

    @tcharding
    Contributor

    Oh yeah? Magic, that makes my life easier by far.

  17. tcharding commented on Nov 15, 2023

    @tcharding
    Contributor

    Do you want the shift stuff backported to 0.30.0 or are you happy jumping over the top of that release? The 0.30 to 0.31 upgrade is not painful like the 0.29 to 0.30 one :)

  18. tnull commented on Nov 15, 2023

    @tnull
    Contributor

    Do you want the shift stuff backported to 0.30.0 or are you happy jumping over the top of that release? The 0.30 to 0.31 upgrade is not painful like the 0.29 to 0.30 one :)

    One benefit of the backport would be that we'd immediately regain compatibility with BDK which had been on 0.30 for a while but is blocked on upgrading to 0.31 due to rust-miniscript not being upgraded (which in turn is blocked on rust-bitcoincore-rpc, etc..., as you are aware). Given that we have users waiting on being able to use the most-recent BDK and LDK versions, having the necessary changes backported would be awesome, at least if it's not too much work on your end.

    We could therefore first upgrade to 0.30 and then better coordinate the upgrade to 0.31 with BDK (cc @notmandatory)

  19. Kixunil commented on Nov 15, 2023

    @Kixunil
    Contributor

    BDK's 1.0 branch already updated to rust-bitcoin

    What the actual hell?! Are they exposing rust-bitcoin types in the API and trying to stabilize? If so, that's a very bad idea as we expect things to break in the future. I even know some specific things that will very likely break.

  20. tnull commented on Nov 15, 2023

    @tnull
    Contributor

    What the actual hell?! Are they exposing rust-bitcoin types in the API and trying to stabilize? If so, that's a very bad idea as we expect things to break in the future. I even know some specific things that will very likely break.

    Ehm, yes, we all use rust-bitcoin re-exported types, also in the API. Even simple types such as bitcoin::Txid or bitcoin::Transaction won't be compatible if the used rust-bitcoin dependencies are not.

    The discussion about the semantics of stabilisation and "when 1.0" is likely off-topic here. However, it's still important that our users can upgrade LDK / BDK libraries in a somewhat reasonable timeframe. And they can't as long as each library depends on a different (API-incompatible) version of rust-bitcoin.

  21. Kixunil commented on Nov 15, 2023

    @Kixunil
    Contributor

    @tnull we could move the discussion here: bitcoindevkit/bdk#1215

    Yeah, I suspected that basic types like Transaction would be what's exposed in the API. Do you think it'd be useful to focus on stabilizing those ASAP in a separate library so that you could publicly depend on those while still being able to depend on full bitcoin crate internally? I have some ideas how to do that reasonably.

  22. tnull commented on Nov 15, 2023

    @tnull
    Contributor

    @tnull we could move the discussion here: bitcoindevkit/bdk#1215

    Yeah, I suspected that basic types like Transaction would be what's exposed in the API. Do you think it'd be useful to focus on stabilizing those ASAP in a separate library so that you could publicly depend on those while still being able to depend on full bitcoin crate internally? I have some ideas how to do that reasonably.

    I mean maybe this would be a long-term solution. However, LDK and BDK really also make use of some of the advanced types and might also want to expose some of it in our API as we're modular low-level libraries ourselves. My personal view is that short- to mid-term we in the rust-bitcoin ecosystem should simply communicate better and do a better job coordinating API-breaking version upgrades when they could affect downstream users that depend on multiple crates (which is why I really appreciate @tcharding's initiative here).

  23. Kixunil commented on Nov 15, 2023

    @Kixunil
    Contributor

    Please see rust-bitcoin/rust-bitcoin#2160 (comment)

    As for advanced stuff, I see these options: put that behind unstable feature flag, put it into a separate crate, we try harder to support more types (e.g. also keys, not just transactions).

  24. tcharding commented on Nov 16, 2023

    @tcharding
    Contributor
  25. added a commit that references this issue on Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions