]> Untitled Git - bdk/log
bdk
3 years agoAdd sync verification for `esplora`
rajarshimaitra [Thu, 16 Dec 2021 15:27:28 +0000 (20:57 +0530)]
Add sync verification for `esplora`

3 years agoAdd sync verification in `electrum`
rajarshimaitra [Thu, 16 Dec 2021 15:23:16 +0000 (20:53 +0530)]
Add sync verification in `electrum`

3 years agoRemove sync verification
rajarshimaitra [Thu, 16 Dec 2021 15:21:18 +0000 (20:51 +0530)]
Remove sync verification

The default sync verification is removed from wallet module.
By default sync time verification only makes sense for `electrum` and
`esplora` backend as they are usually untrusted 3rd party services.

script verification for transaction is costly, so removing default
script verification optimizes performance.

3 years agoMerge bitcoindevkit/bdk#539: [ci] Pin nightly docs workflow rust version to nightly...
Alekos Filini [Mon, 7 Feb 2022 10:01:36 +0000 (11:01 +0100)]
Merge bitcoindevkit/bdk#539: [ci] Pin nightly docs workflow rust version to nightly-2022-01-25

07c270db03bac07604911e6bd253c18713de0ab0 [ci] Pin nightly docs workflow rust version to nightly-2022-01-25 (Steve Myers)

Pull request description:

  ### Description

  Pin nightly docs workflow rust version to `nightly-2022-01-25` to fix #538 .

  ### Notes to the reviewers

  The nightly docs should be changed to the `stable` version once it supports `feature(doc_cfg)`.

  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)

  #### Bugfixes:

  * [x] I'm linking the issue being fixed by this PR

ACKs for top commit:
  afilini:
    ACK 07c270db03bac07604911e6bd253c18713de0ab0

Tree-SHA512: a8e5de051e1963c10d686d5cb5d1785e20f6cd322b9bfcf2d2f5c381d9124a9b8518671dfbedb11550bdfa66c8c64ad505c7e1604e2bfe23600de39cb20467dd

3 years ago[ci] Pin nightly docs workflow rust version to nightly-2022-01-25
Steve Myers [Fri, 4 Feb 2022 14:55:00 +0000 (08:55 -0600)]
[ci] Pin nightly docs workflow rust version to nightly-2022-01-25

3 years agoMerge bitcoindevkit/bdk#532: Release/0.16.0
Alekos Filini [Thu, 27 Jan 2022 09:44:42 +0000 (10:44 +0100)]
Merge bitcoindevkit/bdk#532: Release/0.16.0

fcf422752bb440f08aa9b5384297bbb06bca8cb3 Fix 0.16.0 changelog, include WIF fix (Steve Myers)
6fb42fdea10fcff9a45dd07f966ec4f3746c369d Bump version to 0.16.1-dev (Steve Myers)
3f65e8c64bd620685e40d3b54a0893993513441b Bump version to 0.16.0 (Steve Myers)
3f0101d317ec5a1d0df60c274741ee380563d7fe Bump version to 0.16.0-rc.1 (Steve Myers)

Pull request description:

  ### Description

  Merge the 0.16.0 release branch back into the master branch.

  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
  * [x] I ran `cargo fmt` and `cargo clippy` before committing

ACKs for top commit:
  afilini:
    ACK fcf422752bb440f08aa9b5384297bbb06bca8cb3

Tree-SHA512: 7a1e9297f4e93284e5e57124c7afe37d1fbef1da48375b310aad7fe8556be6bba00c3263e9d15540209fc99ba5e928d3fc751d0df6592c2af871599f00941a7b

3 years agoFix 0.16.0 changelog, include WIF fix
Steve Myers [Fri, 21 Jan 2022 20:27:36 +0000 (14:27 -0600)]
Fix 0.16.0 changelog, include WIF fix

3 years agoBump version to 0.16.1-dev
Steve Myers [Fri, 21 Jan 2022 20:27:02 +0000 (14:27 -0600)]
Bump version to 0.16.1-dev

3 years agoBump version to 0.16.0 v0.16.0
Steve Myers [Fri, 21 Jan 2022 18:35:45 +0000 (12:35 -0600)]
Bump version to 0.16.0

3 years agoBump version to 0.16.0-rc.1
Steve Myers [Wed, 12 Jan 2022 17:01:32 +0000 (18:01 +0100)]
Bump version to 0.16.0-rc.1

3 years agoMerge bitcoindevkit/bdk#505: Using dust value from rust-bitcoin in ``is_dust``
Steve Myers [Wed, 12 Jan 2022 16:47:58 +0000 (17:47 +0100)]
Merge bitcoindevkit/bdk#505: Using dust value from rust-bitcoin in ``is_dust``

5ac51dfe74c51c83fe270570d7ffc50888cf554f fix and test is_dust (James Taylor)
a0c140bb29ab37103e4a24d296ac6fcea91da69e add doc comment for IsDust trait (James Taylor)
bf5994b14ade1fc0c37d3e3cda6946c26ceea631 fixed fee in test, removed unnecessary comment (James Taylor)
ca682819b396c44c9139086b1537d32b212499a1 using dust value from rust-bitcoin (James Taylor)

Pull request description:

  ### Description

  This PR aims to fix #472 . We can retrieve the dust value for a given ``bitcoin::blockdata::script::Script``, so I adjusted the ``is_dust`` function within the ``IsDust`` trait to receive such a ``&Script``. Thus, the ``is_dust`` function can make the proper comparison.
  Let me know if you think that there could be a better interface than this.

  Furthermore, because this new ``is_dust`` function provides a tighter upper bound on Bitcoin Core's ``GetDustThreshold()``, it actually invalidated a test. In the test, the drain output for a transaction was no longer considered dust and no longer included in the fee. Instead, the drain output was kicked back to the sender, invalidating the asserts in line 3436, 3437 and 3441 in ``src/wallet/mod.rs``. I increased the ``FeeRate`` in the test just enough that the drain output would be small enough to considered dust again and included in the total fee.

  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
  * [x] I ran `cargo fmt` and `cargo clippy` before committing

ACKs for top commit:
  afilini:
    ACK 5ac51dfe74c51c83fe270570d7ffc50888cf554f
  notmandatory:
    re ACK 5ac51dfe74c51c83fe270570d7ffc50888cf554f

Tree-SHA512: addf38fe065de581ddfcd3b4e6db92cd35d5bfa8cac78bd08c01f7a01292724a203ef59b09f3f5cd8e0fa0bb6d89efe72afda36efc11ded0424fc8105326af3f

3 years agoMerge bitcoindevkit/bdk#495: Disable reqwest's default features
Steve Myers [Wed, 12 Jan 2022 08:15:23 +0000 (09:15 +0100)]
Merge bitcoindevkit/bdk#495: Disable reqwest's default features

380a4f2588cf9800bde739eb3ba58ca67b785291 Disable reqwest's default features (Thomas Eizinger)

Pull request description:

  ### Description

  By default, reqwest uses openssl for TLS. Any consumer wanting to use
  rustls will thus pull in unnecessary dependencies.

  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
  * [x] I ran `cargo fmt` and `cargo clippy` before committing

  #### New Features:

  * ~[ ] I've added tests for the new feature~
  * ~[ ] I've added docs for the new feature~
  * [x] I've updated `CHANGELOG.md`

  #### Bugfixes:

  * ~[ ] This pull request breaks the existing API~
  * ~[ ] I've added tests to reproduce the issue which are now passing~
  * ~[ ] I'm linking the issue being fixed by this PR~

ACKs for top commit:
  notmandatory:
    ACK 380a4f2588cf9800bde739eb3ba58ca67b785291

Tree-SHA512: 17827fdd7656a1e97b4cc302bc3c4907a8493505c798fafd9b15fde12531a32cf60e7d63e878eb2001d6b3e95f7ae3da730e227eb85c73d9de55b56456cfb3a0

3 years agofix and test is_dust
James Taylor [Tue, 11 Jan 2022 23:21:35 +0000 (18:21 -0500)]
fix and test is_dust

3 years agoMerge commit 'refs/pull/508/head' of github.com:bitcoindevkit/bdk
Steve Myers [Tue, 11 Jan 2022 09:08:33 +0000 (10:08 +0100)]
Merge commit 'refs/pull/508/head' of github.com:bitcoindevkit/bdk

3 years agoDisable reqwest's default features
Thomas Eizinger [Tue, 7 Dec 2021 05:34:03 +0000 (16:34 +1100)]
Disable reqwest's default features

By default, reqwest uses openssl for TLS. Any consumer wanting to use
rustls will thus pull in unnecessary dependencies. To make getting started
with bdk and reqwest easier, we add a `reqwest-default-tls` feature
that can be used to activate reqwest's `default-tls` feature. TLS is
necessary for the esplora integration. Adding this feature makes it possible
for people to use bdk with esplora without adding a reqwest dependency to
their manifest.

4 years agoFix CHANGELOG link for v0.15.0 github/release/0.15.0
Steve Myers [Wed, 29 Dec 2021 21:17:11 +0000 (13:17 -0800)]
Fix CHANGELOG link for v0.15.0

4 years agoMerge bitcoindevkit/bdk#511: Fix nightly_docs.yml publish_docs 'Commit' step
Alekos Filini [Wed, 29 Dec 2021 09:59:24 +0000 (10:59 +0100)]
Merge bitcoindevkit/bdk#511: Fix nightly_docs.yml publish_docs 'Commit' step

947a9c29db7c7bb4855c84e70d986b9ab61339d6 Fix nightly_docs.yml publish_docs 'Commit' step (Steve Myers)

Pull request description:

  ### Description

  I forgot to fix in #503 the `nightly_docs.yaml` `publish_docs` `Commit` step to add new files for the path `./docs/.vuepress/public/docs-rs`.

  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)

ACKs for top commit:
  afilini:
    ACK 947a9c2

Tree-SHA512: d2bdbcb6cea46ec1949eba6f334acd5dbbe9b4b1323bb4713dc5d7f749666260ab05c29247c35f08c587b46d6bfb765c6a612c6522fd15211c84f7590f8c4748

4 years agoBump version to 0.15.1-dev
Steve Myers [Thu, 23 Dec 2021 18:40:42 +0000 (10:40 -0800)]
Bump version to 0.15.1-dev

4 years agoMerge commit 'refs/pull/510/head' of github.com:bitcoindevkit/bdk
Steve Myers [Thu, 23 Dec 2021 18:34:58 +0000 (10:34 -0800)]
Merge commit 'refs/pull/510/head' of github.com:bitcoindevkit/bdk

4 years agoFix nightly_docs.yml publish_docs 'Commit' step
Steve Myers [Thu, 23 Dec 2021 18:22:55 +0000 (10:22 -0800)]
Fix nightly_docs.yml publish_docs 'Commit' step

4 years agoMerge commit 'refs/pull/504/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Thu, 23 Dec 2021 11:24:52 +0000 (12:24 +0100)]
Merge commit 'refs/pull/504/head' of github.com:bitcoindevkit/bdk

4 years agoMerge commit 'refs/pull/509/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Thu, 23 Dec 2021 11:22:09 +0000 (12:22 +0100)]
Merge commit 'refs/pull/509/head' of github.com:bitcoindevkit/bdk

4 years agoAdd a custom logo to our docs
Alekos Filini [Thu, 23 Dec 2021 10:36:49 +0000 (11:36 +0100)]
Add a custom logo to our docs

As suggested in #497, add our logo to the docs as well

4 years agoMerge commit 'refs/pull/503/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Thu, 23 Dec 2021 10:34:34 +0000 (11:34 +0100)]
Merge commit 'refs/pull/503/head' of github.com:bitcoindevkit/bdk

4 years agoAdd back old logo to static/bdk.svg
Steve Myers [Thu, 23 Dec 2021 05:38:54 +0000 (21:38 -0800)]
Add back old logo to static/bdk.svg

This is required so that old releases of bdk on crates.io won't show a
broken image link. Should be replaced with SVG version of new logo.

4 years agoBump version to 0.15.0 v0.15.0
Steve Myers [Thu, 23 Dec 2021 04:34:38 +0000 (20:34 -0800)]
Bump version to 0.15.0

4 years agoadd doc comment for IsDust trait
James Taylor [Wed, 22 Dec 2021 06:50:17 +0000 (01:50 -0500)]
add doc comment for IsDust trait

4 years agofixed fee in test, removed unnecessary comment
James Taylor [Sun, 19 Dec 2021 23:37:05 +0000 (18:37 -0500)]
fixed fee in test, removed unnecessary comment

4 years agousing dust value from rust-bitcoin
James Taylor [Sun, 19 Dec 2021 07:55:24 +0000 (02:55 -0500)]
using dust value from rust-bitcoin

4 years agoTest WIF from BIP39 words has correct network
mcroad [Sat, 18 Dec 2021 21:34:18 +0000 (15:34 -0600)]
Test WIF from BIP39 words has correct network

4 years agoAdd fix to changelog
mcroad [Sat, 18 Dec 2021 21:13:09 +0000 (15:13 -0600)]
Add fix to changelog

4 years agoSet the correct inner `private_key` network
mcroad [Sat, 18 Dec 2021 21:10:25 +0000 (15:10 -0600)]
Set the correct inner `private_key` network

4 years agoAdd test to ensure WIF uses the correct network
mcroad [Sat, 18 Dec 2021 21:08:16 +0000 (15:08 -0600)]
Add test to ensure WIF uses the correct network

4 years agoUpdate logo
Alekos Filini [Fri, 10 Dec 2021 12:01:21 +0000 (13:01 +0100)]
Update logo

4 years agoBump version to 0.15.0-rc.1
Steve Myers [Sat, 18 Dec 2021 05:40:07 +0000 (21:40 -0800)]
Bump version to 0.15.0-rc.1

4 years ago[ci] Fix publish_docs job
Steve Myers [Sat, 18 Dec 2021 05:28:39 +0000 (21:28 -0800)]
[ci] Fix publish_docs job

4 years agoMerge bitcoindevkit/bdk#501: Only run clippy for the stable rust version
Steve Myers [Thu, 16 Dec 2021 17:28:58 +0000 (09:28 -0800)]
Merge bitcoindevkit/bdk#501: Only run clippy for the stable rust version

57a1185aef82718b8e6ad1272237f4d8f644fdc2 Only run clippy for the stable rust version (Steve Myers)

Pull request description:

  ### Description

  It was decided during the team call today (2021-12-14)  to only run clippy for the stable rust version.

  ### Notes to the reviewers

  This is required to fix the below build issues when running clippy on rust version 1.46.0.

  ```shell
  cargo clippy --all-targets --features async-interface --no-default-features -- -D warnings
  ```

  ```text
  ...

  Checking bitcoincore-rpc v0.14.0
  error: unknown clippy lint: clippy::no_effect_underscore_binding
    --> src/blockchain/mod.rs:88:1
     |
  88 | #[maybe_async]
     | ^^^^^^^^^^^^^^
     |
     = note: `-D clippy::unknown-clippy-lints` implied by `-D warnings`
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unknown_clippy_lints
     = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

  error: unknown clippy lint: clippy::no_effect_underscore_binding
     --> src/blockchain/mod.rs:220:1
      |
  220 | #[maybe_async]
      | ^^^^^^^^^^^^^^
      |
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unknown_clippy_lints
      = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
  ```

  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
  * [x] I ran `cargo fmt` and `cargo clippy` before committing

Top commit has no ACKs.

Tree-SHA512: 3fe0d2829415c7276d5339e217cefba1255c14d6d73ec0a5eff2b8072d189ffef56088623ef75f84e400d3d05e546f759b8048082b467a3738885796b3338323

4 years agoOnly run clippy for the stable rust version
Steve Myers [Wed, 15 Dec 2021 06:06:06 +0000 (22:06 -0800)]
Only run clippy for the stable rust version

4 years agoMerge bitcoindevkit/bdk#492: bump electrsd dep to 0.13
Steve Myers [Wed, 1 Dec 2021 17:33:07 +0000 (09:33 -0800)]
Merge bitcoindevkit/bdk#492: bump electrsd dep to 0.13

f7f9bd2409d51354698aa1f24bccba8ca429f279 bump electrsd dep to 0.13 (Riccardo Casatta)

Pull request description:

  <!-- You can erase any parts of this template not applicable to your Pull Request. -->

  ### Description

  bump electrsd dep to 0.13, close #491

ACKs for top commit:
  rajarshimaitra:
    ACK https://github.com/bitcoindevkit/bdk/pull/492/commits/f7f9bd2409d51354698aa1f24bccba8ca429f279
  notmandatory:
    utACK f7f9bd24

Tree-SHA512: 89a8094387896c9296e2f0120d7a2c7419e979049a12fc9a6ae7fe1810b75af43338db235887dd9054a6b52e400491b77f8e006f61451da54aca9635098ab342

4 years agobump electrsd dep to 0.13
Riccardo Casatta [Wed, 1 Dec 2021 07:45:32 +0000 (08:45 +0100)]
bump electrsd dep to 0.13

4 years agoMerge bitcoindevkit/bdk#487: Use "Description" instead of "Descriptive Title" in...
Steve Myers [Wed, 1 Dec 2021 00:20:31 +0000 (16:20 -0800)]
Merge bitcoindevkit/bdk#487: Use "Description" instead of "Descriptive Title" in SoB Issue Template

084ec036a53c94b4a3f7a7e9d6abd7842d99a939 Use "Description" instead of "Descriptive Title" (rajarshimaitra)

Pull request description:

  <!-- You can erase any parts of this template not applicable to your Pull Request. -->

  ### Description

  <!-- Describe the purpose of this PR, what's being adding and/or fixed -->

  The `Descriptive Title` part is already in the issue title, and we can use `Description` in the issue body.

  ### Notes to the reviewers

  <!-- In this section you can include notes directed to the reviewers, like explaining why some parts
  of the PR were done in a specific way -->

  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)

ACKs for top commit:
  thunderbiscuit:
    ACK 084ec03.
  notmandatory:
    ACK 084ec036a53c94b4a3f7a7e9d6abd7842d99a939

Tree-SHA512: 2fc365066849033cce056a46bc9e8ab2d931aa45fd2799ebebe3e07bb789c458491ebf2c05e5868bdff63f60dec0657043f3374135dcfbc79a1f89a2562b1883

4 years agoMerge bitcoindevkit/bdk#478: Fix typos in comments
Steve Myers [Wed, 1 Dec 2021 00:19:01 +0000 (16:19 -0800)]
Merge bitcoindevkit/bdk#478: Fix typos in comments

7f8103dd762572f8b0f01514d0c32723d27c61e9 Fix typos in comments (thunderbiscuit)

Pull request description:

  ### Description

  This PR fixes a bunch of small typos in comments. I'm getting acquainted with the codebase and found a few typos just by chance, and ended up going through it with an IDE searching for typos in all files.

  ### Notes to the reviewers

  To be clear, this PR _only addresses typos that are within comments_.

  ### Checklists

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
  * [x] I ran `cargo fmt` and `cargo clippy` before committing

ACKs for top commit:
  notmandatory:
    ACK 7f8103dd762572f8b0f01514d0c32723d27c61e9

Tree-SHA512: eb3f8f21cbd05de06292affd9ef69c21b52022dfdf25c562c8f4d9c9c011f18175dff0c650cb7efcfb2b665f2af80d9a153be3d12327c47796b0d00bfd5d9803

4 years agoMerge bitcoindevkit/bdk#473: release/0.14.0
Steve Myers [Wed, 1 Dec 2021 00:15:21 +0000 (16:15 -0800)]
Merge bitcoindevkit/bdk#473: release/0.14.0

fed4a597284d20cbd69e9c5be5e4586623f70d59 Bump version to 0.14.1-dev (Steve Myers)
c175dd2aae10b0a48430b58e40f0b66fde4bdc48 Bump version to 0.14.0 (Steve Myers)
6b1cbcc4b71c3ec4aa2abb3ab6836f86dbf80c34 Bump version to 0.14.0-rc.1 (Steve Myers)

Pull request description:

  ### Description

  Merge the 0.14.0 bdk release into the master branch.

  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
  * [x] I ran `cargo fmt` and `cargo clippy` before committing

Top commit has no ACKs.

Tree-SHA512: 0a897988c47f56e24b7e831cb45ff348b5637ca1a172555e9456539f5b75f263007421d63820b20737bcddb6f4c8077271471ea830e500ca6f88b902502f8186

4 years agoMerge branch 'master' into release/0.14.0 github/release/0.14.0
Steve Myers [Tue, 30 Nov 2021 23:41:41 +0000 (15:41 -0800)]
Merge branch 'master' into release/0.14.0

4 years agoUse "Description" instead of "Descriptive Title"
rajarshimaitra [Tue, 30 Nov 2021 06:56:36 +0000 (12:26 +0530)]
Use "Description" instead of "Descriptive Title"

4 years agoMerge bitcoindevkit/bdk#475: Fix typo in check_miniscript method declaration and use
Steve Myers [Mon, 29 Nov 2021 22:12:38 +0000 (14:12 -0800)]
Merge bitcoindevkit/bdk#475: Fix typo in check_miniscript method declaration and use

b9fc06195beab8eab4c4c6224dc069ebd5106729 Fix typo in check_miniscript method declaration and use (thunderbiscuit)

Pull request description:

  ### Description

  This PR renames the `check_minsicript()` method on the `CheckMiniscript` trait  and its uses throughout the codebase to `check_miniscript()`.

  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
  * [x] I ran `cargo fmt` and `cargo clippy` before committing

ACKs for top commit:
  notmandatory:
    ACK b9fc06195beab8eab4c4c6224dc069ebd5106729

Tree-SHA512: cc4406c653cb86f9b15e60c6f87b95c300784d6b2992abc98b3f2db4b02ce252304cc0ab2c638f080b0caf3889e832885eca19e2d6582a3557c8709311b69644

4 years agoMerge bitcoindevkit/bdk#477: Update issue templates
Steve Myers [Mon, 29 Nov 2021 18:24:52 +0000 (10:24 -0800)]
Merge bitcoindevkit/bdk#477: Update issue templates

8534cd39433211733c325a73ca15fe7d569e8401 Update issue templates (Steve Myers)

Pull request description:

  <!-- You can erase any parts of this template not applicable to your Pull Request. -->

  ### Description

  Add bug reporting issue template and template for proposing a "Summer of Bitcoin" project.

  ### Notes to the reviewers

  The SoB template is basically a copy of what Adi created but lightly formatted to work as github issue templates.

  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)

Top commit has no ACKs.

Tree-SHA512: 956f7833b7cc1daf4880f74be3886fb17508719af37a247065c463d3f95b1f058bad785590714c609b0e069fe00784bc71cfb0812a79a70c18a2b5bdb22aca6b

4 years agoBump version to 0.14.1-dev
Steve Myers [Sun, 28 Nov 2021 06:13:29 +0000 (22:13 -0800)]
Bump version to 0.14.1-dev

4 years agoBump version to 0.14.0 v0.14.0
Steve Myers [Sun, 28 Nov 2021 05:00:19 +0000 (21:00 -0800)]
Bump version to 0.14.0

4 years agoUpdate issue templates
Steve Myers [Mon, 15 Nov 2021 20:29:28 +0000 (12:29 -0800)]
Update issue templates

4 years agoMerge bitcoindevkit/bdk#471: moving the function wallet_name_from_descriptor from...
Steve Myers [Thu, 25 Nov 2021 04:44:27 +0000 (20:44 -0800)]
Merge bitcoindevkit/bdk#471: moving the function wallet_name_from_descriptor from blockchain/rpc.rs to wallet/mod.rs as it can be useful not only for rpc

2fc81141806ace8f12e5a019c0866f16fa8a02dc moving the function wallet_name_from_descriptor from blockchain/rpc.rs to wallet/mod.rs as it can be useful not only for rpc (Richard Ulrich)

Pull request description:

  ### Description

  Moving the function wallet_name_from_descriptor from rpc.rs to mod.rs
  Since the local cache for compact filters should be separate per wallet, this function can be useful not only for rpc.

  ### Notes to the reviewers

  I thought about renaming it, but waited for opinions on that.

  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
  * [x] I ran `cargo fmt` and `cargo clippy` before committing

ACKs for top commit:
  notmandatory:
    re-ACK  2fc8114

Tree-SHA512: d5732e74f7a54f54dde39fff77f94f12c611a419bed9683025ecf7be95cde330209f676dfc9346ebcd29194325589710eafdd1d533e8073d0662cb397577119f

4 years agoMerge bitcoindevkit/bdk#461: Restructure electrum/esplora sync logic
Steve Myers [Thu, 25 Nov 2021 03:48:19 +0000 (19:48 -0800)]
Merge bitcoindevkit/bdk#461: Restructure electrum/esplora sync logic

9c5770831de58760066dbbb26c0785632dde4991 Make stop_gap a parameter to EsploraBlockchainConfig::new (LLFourn)
0f0a01a742448fa9db67752722fed7d1c028117b s/vin/vout/ (LLFourn)
1a64fd9c9595566366cfe96cc20d8ba2f4da1bd3 Delete src/blockchain/utils.rs (LLFourn)
d3779fac73321f41b82897e6ab69708c957212b2 Fix comments (LLFourn)
d39401162fb72a9a02999908ac0347685d8861a5 Less intermediary data states in sync (LLFourn)
dfb63d389b2804cb55da60de0d8fcad985d50e5c s/observed_txs/finished_txs/g (LLFourn)
188d9a4a8b502b3f681f4c83fd9933b9a952e42c Make variable names consistent (LLFourn)
5eadf5ccf9722aa331008304221e981d01bca1c1 Add some logging to script_sync (LLFourn)
aaad560a91872318890208c4b3d5cb73a63029a8 Always get up to chunk_size heights to request headers for (LLFourn)
e7c13575c88be4fce1f407eae3710cb06c5db039 Don't request conftime during tx request (LLFourn)
808d7d8463c56cbcda0bd55a5eba422cf5080ce7 Update changelog (LLFourn)
732166fcb689ad666eab02a4bb28c33018f7b819 Fix feerate calculation for esplora (LLFourn)
3f5cb6997f8bf0c889747badb9498a402ecf96a4 Invert dependencies in electrum sync (LLFourn)

Pull request description:

  ## Description

  This PR does dependency inversion on the previous sync logic for electrum and esplora captured in the trait `ElectrumLikeSync`. This means that the sync logic does not reference the blockchain at all. Instead the blockchain asks the sync logic (in `script_sync.rs`) what it needs to continue the sync and tries to retrieve it.

  The initial purpose of doing this is to remove invocations of `maybe_await` in the abstract sync logic in preparation for completely removing `maybe_await` in the future. The other major benefit is it gives a lot more freedom for the esplora logic to use the rich data from the responses to complete the sync with less HTTP requests than it did previously.

  ## List of changes

  - sync logic moved to `script_sync.rs` and `ElectrumLikeSync` is gone.
  - esplora makes one http request per sync address. This means it makes half the number of http requests for a fully synced wallet and N*M less requests for a wallet which has N new transactions with M unique input transactions.
  - electrum and esplora save less raw transactions in the database. Electrum still requests input transactions for each of its transactions to calculate the fee but it does not save them to the database anymore.
  - The ureq and reqwest blockchain configuration is now unified into the same struct. This is the only API change. `read_timeout` and `write_timeout` have been removed in favor of a single `timeout` option which is set in both ureq and reqwest.
  - ureq now does concurrent (parallel) requests using threads.
  - An previously unnoticed bug has been fixed where by sending a lot of double spending transactions to the same address you could trick a bdk Esplora wallet into thinking it had a lot of unconfirmed coins. This is because esplora doesn't delete double spent transactions from its indexes immediately (not sure if this is a bug or a feature). A blockchain test is added for this.
  - BONUS: The second commit in this PR fixes the feerate calculation for esplora and adds a test (the previous algorithm didn't work at all). I could have made a separate PR but since I was touching this file a lot I decided to fix it here.

  ## Notes to the reviewers

  - The most important thing to review is the the logic in `script_sync.rs` is sound.
  - Look at the two commits separately.
  - I think CI is failing because of MSRV problems again!
  - It would be cool to measure how much sync time is improved for your existing wallets/projects. For `gun` the speed improvements for modest but it is at least hammering the esplora server much less.
  - I noticed the performance of reqwest in blocking is much worse in this patch than previously. This is because somehow reqwest is not re-using the connection for each request in this new code. I have no idea why. The plan is to get rid of the blocking reqwest implementation in a follow up PR.

  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits

ACKs for top commit:
  rajarshimaitra:
    Retested ACK https://github.com/bitcoindevkit/bdk/pull/461/commits/a630685a0ab95604cadbb423f65d8358ba4bc4e4

Tree-SHA512: de74981e9d1f80758a9f20a3314ed7381c6b7c635f7ede80b177651fe2f9e9468064fae26bf80d4254098accfacfe50326ae0968e915186e13313f05bf77990b

4 years agoFix typos in comments
thunderbiscuit [Tue, 23 Nov 2021 18:40:58 +0000 (13:40 -0500)]
Fix typos in comments

4 years agoFix typo in check_miniscript method declaration and use
thunderbiscuit [Tue, 23 Nov 2021 17:59:08 +0000 (12:59 -0500)]
Fix typo in check_miniscript method declaration and use

4 years agoMerge branch 'master' into sync_pipeline
LLFourn [Tue, 23 Nov 2021 00:28:18 +0000 (11:28 +1100)]
Merge branch 'master' into sync_pipeline

4 years agomoving the function wallet_name_from_descriptor from blockchain/rpc.rs to wallet...
Richard Ulrich [Wed, 17 Nov 2021 15:26:43 +0000 (16:26 +0100)]
moving the function wallet_name_from_descriptor from blockchain/rpc.rs to wallet/mod.rs as it can be useful not only for rpc

4 years agoBump version to 0.14.0-rc.1
Steve Myers [Wed, 17 Nov 2021 19:54:09 +0000 (11:54 -0800)]
Bump version to 0.14.0-rc.1

4 years agoFix blockchain_tests::test_send_to_bech32m_addr
Steve Myers [Thu, 11 Nov 2021 21:44:34 +0000 (13:44 -0800)]
Fix blockchain_tests::test_send_to_bech32m_addr

Now works with latest released versions of rust-bitcoincore-rpc and
bitcoind. Once these crates are updated to support creating descriptor
wallets and add importdescriptors and bech32m support this test will
need to be updated.

4 years agoAdded wallet blockchain test to send to Bech32m address
Sandipan Dey [Mon, 13 Sep 2021 16:31:44 +0000 (22:01 +0530)]
Added wallet blockchain test to send to Bech32m address

4 years agoAdded a wallet unit test to send to a Bech32m address
Sandipan Dey [Mon, 13 Sep 2021 16:29:20 +0000 (21:59 +0530)]
Added a wallet unit test to send to a Bech32m address

4 years ago[database] Wrap `BlockTime` in another struct to allow adding more
Alekos Filini [Thu, 4 Nov 2021 15:38:38 +0000 (15:38 +0000)]
[database] Wrap `BlockTime` in another struct to allow adding more
fields in the future

4 years agoRename `ConfirmationTime` to `BlockTime`
Alekos Filini [Wed, 3 Nov 2021 16:05:30 +0000 (16:05 +0000)]
Rename `ConfirmationTime` to `BlockTime`

4 years agoUpdate CHANGELOG.md
Alekos Filini [Tue, 26 Oct 2021 12:38:55 +0000 (14:38 +0200)]
Update CHANGELOG.md

4 years ago[wallet] Store the block height and timestamp after syncing
Alekos Filini [Sat, 23 Oct 2021 13:25:49 +0000 (15:25 +0200)]
[wallet] Store the block height and timestamp after syncing

Closes #455

4 years ago[wallet] Expose an immutable reference to a wallet's database
Alekos Filini [Sat, 23 Oct 2021 13:00:09 +0000 (15:00 +0200)]
[wallet] Expose an immutable reference to a wallet's database

4 years ago[db] Add the `last_sync_time` database entry
Alekos Filini [Sat, 23 Oct 2021 12:51:42 +0000 (14:51 +0200)]
[db] Add the `last_sync_time` database entry

This will be used to store the height and timestamp after every sync.

4 years agoMake stop_gap a parameter to EsploraBlockchainConfig::new
LLFourn [Fri, 5 Nov 2021 02:34:30 +0000 (13:34 +1100)]
Make stop_gap a parameter to EsploraBlockchainConfig::new

4 years agos/vin/vout/
LLFourn [Fri, 5 Nov 2021 02:30:41 +0000 (13:30 +1100)]
s/vin/vout/

4 years agoDelete src/blockchain/utils.rs
LLFourn [Fri, 5 Nov 2021 01:47:48 +0000 (12:47 +1100)]
Delete src/blockchain/utils.rs

4 years agoFix comments
LLFourn [Fri, 5 Nov 2021 01:44:36 +0000 (12:44 +1100)]
Fix comments

4 years agoLess intermediary data states in sync
LLFourn [Fri, 5 Nov 2021 01:34:17 +0000 (12:34 +1100)]
Less intermediary data states in sync

Use BTrees to store ordered sets rather than HashSets -> VecDequeue

4 years agos/observed_txs/finished_txs/g
LLFourn [Fri, 5 Nov 2021 01:14:42 +0000 (12:14 +1100)]
s/observed_txs/finished_txs/g

4 years agoMake variable names consistent
LLFourn [Tue, 2 Nov 2021 06:22:24 +0000 (17:22 +1100)]
Make variable names consistent

4 years agoAdd some logging to script_sync
LLFourn [Tue, 2 Nov 2021 06:16:03 +0000 (17:16 +1100)]
Add some logging to script_sync

4 years agoAlways get up to chunk_size heights to request headers for
LLFourn [Tue, 2 Nov 2021 05:49:19 +0000 (16:49 +1100)]
Always get up to chunk_size heights to request headers for

4 years agoDon't request conftime during tx request
LLFourn [Tue, 2 Nov 2021 05:34:50 +0000 (16:34 +1100)]
Don't request conftime during tx request

4 years agoUpdate changelog
LLFourn [Thu, 28 Oct 2021 03:49:11 +0000 (14:49 +1100)]
Update changelog

4 years agoFix feerate calculation for esplora
LLFourn [Thu, 28 Oct 2021 02:53:32 +0000 (13:53 +1100)]
Fix feerate calculation for esplora

4 years agoInvert dependencies in electrum sync
LLFourn [Fri, 29 Oct 2021 06:41:02 +0000 (17:41 +1100)]
Invert dependencies in electrum sync

Blockchain calls sync logic rather than the other way around.
Sync logic is captured in script_sync.rs.

4 years agofix after merge changing borrow of tx in broadcast
Riccardo Casatta [Tue, 9 Nov 2021 14:35:34 +0000 (15:35 +0100)]
fix after merge changing borrow of tx in broadcast

4 years agoUpdate CHANGELOG
Riccardo Casatta [Thu, 28 Oct 2021 08:06:52 +0000 (10:06 +0200)]
Update CHANGELOG

4 years agoadd test for add_data
Riccardo Casatta [Wed, 27 Oct 2021 14:56:46 +0000 (16:56 +0200)]
add test for add_data

4 years agoadd method add_data as a shortcut to create an OP_RETURN output, fix the dust check...
Riccardo Casatta [Wed, 27 Oct 2021 14:34:33 +0000 (16:34 +0200)]
add method add_data as a shortcut to create an OP_RETURN output, fix the dust check to consider only spendable output

4 years agoMerge commit 'refs/pull/464/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Mon, 8 Nov 2021 09:41:12 +0000 (10:41 +0100)]
Merge commit 'refs/pull/464/head' of github.com:bitcoindevkit/bdk

4 years agoMerge commit 'refs/pull/458/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Mon, 8 Nov 2021 09:39:50 +0000 (10:39 +0100)]
Merge commit 'refs/pull/458/head' of github.com:bitcoindevkit/bdk

4 years agoUpdate WordsCount -> WordCount
rajarshimaitra [Sat, 6 Nov 2021 14:44:03 +0000 (20:14 +0530)]
Update WordsCount -> WordCount

4 years agoUpdate changelog
rajarshimaitra [Sat, 6 Nov 2021 14:43:45 +0000 (20:13 +0530)]
Update changelog

4 years agoMerge commit 'refs/pull/462/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Thu, 4 Nov 2021 15:26:15 +0000 (15:26 +0000)]
Merge commit 'refs/pull/462/head' of github.com:bitcoindevkit/bdk

4 years agoMerge commit 'refs/pull/453/head' of github.com:bitcoindevkit/bdk
Steve Myers [Wed, 3 Nov 2021 20:51:59 +0000 (13:51 -0700)]
Merge commit 'refs/pull/453/head' of github.com:bitcoindevkit/bdk

4 years agoremove redundant backtrace dependency
rajarshimaitra [Wed, 3 Nov 2021 05:38:21 +0000 (11:08 +0530)]
remove redundant backtrace dependency

4 years agoupdate module doc
rajarshimaitra [Tue, 2 Nov 2021 10:11:51 +0000 (15:41 +0530)]
update module doc

4 years agoReplace tiny-bip39 with rust-bip39
rajarshimaitra [Sun, 31 Oct 2021 14:55:00 +0000 (20:25 +0530)]
Replace tiny-bip39 with rust-bip39

Use rust-bip39 for mnemonic derivation everywhere.

This requires our own WordCount enum as rust-bip39 doesn't have
explicit mnemonic type definition.

4 years agoUpdate codecov@v2
rajarshimaitra [Mon, 25 Oct 2021 06:20:34 +0000 (11:50 +0530)]
Update codecov@v2

4 years agoupdate dependency
rajarshimaitra [Sun, 31 Oct 2021 14:53:25 +0000 (20:23 +0530)]
update dependency

dependency updated from tiny-bip39 to rust-bip39

4 years agoBump version to 0.13.1-dev github/release/0.13.0
Steve Myers [Thu, 28 Oct 2021 20:38:39 +0000 (13:38 -0700)]
Bump version to 0.13.1-dev

4 years agoBump version to 0.13.0 v0.13.0
Steve Myers [Thu, 28 Oct 2021 17:44:56 +0000 (10:44 -0700)]
Bump version to 0.13.0

4 years agoSwitch back to rust-bitcoin/rust-bitcoincore-rpc
Steve Myers [Wed, 27 Oct 2021 20:52:18 +0000 (13:52 -0700)]
Switch back to rust-bitcoin/rust-bitcoincore-rpc

4 years agoUpdate dev-dependencies electrsd to 0.12
Steve Myers [Wed, 27 Oct 2021 20:42:01 +0000 (13:42 -0700)]
Update dev-dependencies electrsd to 0.12

4 years agoBorrow instead of moving transaction when broadcasting
Mariusz Klochowicz [Wed, 20 Oct 2021 05:04:29 +0000 (15:34 +1030)]
Borrow instead of moving transaction when broadcasting

There's no need to take ownership of the transaction for a broadcast.

4 years agoPin version of `ureq` to maintain our MSRV
Alekos Filini [Fri, 22 Oct 2021 09:59:01 +0000 (11:59 +0200)]
Pin version of `ureq` to maintain our MSRV

(cherry picked from commit d75d221540a0d47b7538b456211f92cdb4d4da8c)