Skip to content

Upgrade for bdk v0.17.0 #81

Closed
Closed

Description

@rajarshimaitra

In light of bitcoindevkit/bdk#535, I feel the cli code can be optimized a lot. We can remove the OnlineWalletSubcommand and OfflineWalletSubcommand, as there is now no distinction between online and offline wallets. All wallets are offline and we only need a blockchian when we want to sync and broadcast..

This needs to be done before other open PRs can be merged or else it might cause rework on them.

So opening up this issue for approach discussion. Whats the best way structure bdk-cli after the big bdk change? Or should the same structure be kept as it is and adopt with minimal changes?

Activity

  1. added
    enhancement
    question
    on Mar 25, 2022
  2. linked a pull request that will close this issueUpdate to bdk 0.17.0 #73on Mar 25, 2022
  3. notmandatory commented on Mar 29, 2022

    @notmandatory
    Contributor

    I think the basic options and commands will look the same since we already only enable online commands when a blockchain feature is turned on. But I agree this is a high priority to update to the new bdk API.

  4. kirillzh commented on Mar 29, 2022

    @kirillzh

    Could we also add verify feature? Getting this error right now when trying to install bdk-cli binary:

    $ cargo install bdk-cli --features repl,electrum,compiler,verify
    
    Package `bdk-cli v0.4.0` does not have the feature `verify` 
    
  5. added this to the Release 0.5.x milestone on Mar 29, 2022
  6. rajarshimaitra commented on Mar 31, 2022

    @rajarshimaitra
    ContributorAuthor

    Could we also add verify feature? Getting this error right now when trying to install bdk-cli binary:

    Yes currently bdk-cli doesn't expose the verify function. Do you think that is useful? I am curious to know your use case for transaction verification. In general if your wallet is connected to a backend node, the node verifies the transaction by itself and then provides it to the wallet.

  7. moved this from Todo to Ready to Review in BDK-CLIon Mar 31, 2022
  8. notmandatory commented on Apr 1, 2022

    @notmandatory
    Contributor

    I've added a bdk-cli verify feature in #73

  9. Repository owner moved this from Ready to Review to Done in BDK-CLIon Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementquestion

Type

No type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions