]> Untitled Git - bdk/log
bdk
4 years agoUse vec! instead of mut and push
Tobin Harding [Tue, 9 Feb 2021 23:25:46 +0000 (10:25 +1100)]
Use vec! instead of mut and push

As suggested by Clippy, use the `vec!` macro directly instead of
declaring a mutable vector and pushing elements onto it.

4 years agoRemove useless question mark operator
Tobin Harding [Tue, 9 Feb 2021 23:20:06 +0000 (10:20 +1100)]
Remove useless question mark operator

Clippy emits:

  warning: Question mark operator is useless here

No need to use the `?` operator inside an `Ok()` statement when
returning, just return directly.

4 years agoDo not compare vtable
Tobin Harding [Wed, 30 Dec 2020 03:58:42 +0000 (14:58 +1100)]
Do not compare vtable

Clippy emits error:

 comparing trait object pointers compares a non-unique vtable address

The vtable is an implementation detail, it may change in future. we
should not be comparing vtable addresses for equality. Instead we can
get a pointer to the data field of a fat pointer and compare on that.

4 years agoRefactor db/batch matching
Tobin Harding [Wed, 23 Dec 2020 05:19:37 +0000 (16:19 +1100)]
Refactor db/batch matching

Remove the TODO; refactor matching to correctly handle conditionally
built `Sled` variants. Use `unreachable` instead of `unimplemented` with
a comment hinting that this is a bug, this makes it explicit, both at
runtime and when reading the code, that this match arm should not be hit.

4 years agoConditionally compile constructor
Tobin Harding [Wed, 23 Dec 2020 05:15:09 +0000 (16:15 +1100)]
Conditionally compile constructor

The `ChunksIterator` constructor is only used when either `electrum` or
`esplora` features are enabled. Conditionally build it so that we do not
get a clippy warning when building without these features.

4 years agoAllow mutex_atomic
Tobin Harding [Wed, 23 Dec 2020 04:58:57 +0000 (15:58 +1100)]
Allow mutex_atomic

 Clippy complains about use of a mutex, suggesting we use an
 `AtomicUsize`. While the same functionality _could_ be achieved using an
 `AtomicUsize` and a CAS loop it makes the code harder to reason about
 for little gain. Lets just quieten clippy with an allow attribute and
 document why we did so.

4 years agoUse default pattern
Tobin Harding [Wed, 23 Dec 2020 03:16:43 +0000 (14:16 +1100)]
Use default pattern

Clippy emits warning:

  warning: field assignment outside of initializer for an instance
  created with Default::default()

Do as suggested by clippy and use the default init pattern.

```
    let foo = Foo {
     bar: ...,
        Default::default()
    }
```

4 years agoUse next instead of nth(0)
Tobin Harding [Wed, 23 Dec 2020 03:08:54 +0000 (14:08 +1100)]
Use next instead of nth(0)

As suggested by clippy we can use `.next()` on an iterator instead of
`nth(0)`. Although arguably no clearer, and certainly no worse, it keeps
clippy quiet and a clean lint is a good thing.

4 years agoUse count instead of collect and len
Tobin Harding [Wed, 23 Dec 2020 03:07:09 +0000 (14:07 +1100)]
Use count instead of collect and len

Clippy emits warning:

warning: avoid using `collect()` when not needed

As suggested by clippy just use `count` directly on the iterator instead
of `collect` followed by `len`.

4 years agoRemove needles explicit reference
Tobin Harding [Wed, 23 Dec 2020 02:45:39 +0000 (13:45 +1100)]
Remove needles explicit reference

Clippy emits warning:

warning: needlessly taken reference of both operands

Remove the explicit reference's as suggested.

4 years agoRemove redundant calls to clone
Tobin Harding [Wed, 23 Dec 2020 02:42:52 +0000 (13:42 +1100)]
Remove redundant calls to clone

No need to clone copy types, found by clippy.

4 years agoRemove static lifetime
Tobin Harding [Wed, 23 Dec 2020 02:33:05 +0000 (13:33 +1100)]
Remove static lifetime

const str types do not need an explicit lifetime, remove it. Found by
clippy.

4 years agoUse ! is_empty instead of len > 0
Tobin Harding [Mon, 21 Dec 2020 09:09:45 +0000 (20:09 +1100)]
Use ! is_empty instead of len > 0

As directed by clippy use `!a.is_empty()` instead of `a.len() > 0`.

4 years agoUse `unwrap_or_else`
Tobin Harding [Mon, 21 Dec 2020 09:08:24 +0000 (20:08 +1100)]
Use `unwrap_or_else`

As directed by clippy use `unwrap_or_else` in order to take advantage of
lazy evaluation.

4 years ago[ci] Rename MAGICAL_ env vars to BDK_, for tests use wallet name in RPC calls
Steve Myers [Fri, 12 Feb 2021 17:53:37 +0000 (09:53 -0800)]
[ci] Rename MAGICAL_ env vars to BDK_, for tests use wallet name in RPC calls

4 years ago[ci] Update start-core.sh to create default wallet for bitcoind 0.21.0
Steve Myers [Mon, 25 Jan 2021 01:46:41 +0000 (17:46 -0800)]
[ci] Update start-core.sh to create default wallet for bitcoind 0.21.0

4 years agoMerge branch 'release/0.4.0'
Steve Myers [Thu, 18 Feb 2021 02:33:11 +0000 (18:33 -0800)]
Merge branch 'release/0.4.0'

4 years agoFix CHANGELOG 'Unreleased' link github/release/0.4.0
Steve Myers [Thu, 18 Feb 2021 00:49:22 +0000 (16:49 -0800)]
Fix CHANGELOG 'Unreleased' link

4 years agoBump version to 0.4.1-dev
Steve Myers [Thu, 18 Feb 2021 00:32:23 +0000 (16:32 -0800)]
Bump version to 0.4.1-dev

4 years agoBump version to 0.4.0 v0.4.0
Steve Myers [Wed, 17 Feb 2021 19:54:22 +0000 (11:54 -0800)]
Bump version to 0.4.0

4 years agoUpdate 'bdk-macros', 'bdk-testutils', 'bdk-testutils-macros' dep versions
Steve Myers [Wed, 17 Feb 2021 19:53:38 +0000 (11:53 -0800)]
Update 'bdk-macros', 'bdk-testutils', 'bdk-testutils-macros' dep versions

4 years agoBump 'bdk-macros' version to 0.3.0
Steve Myers [Wed, 17 Feb 2021 19:48:44 +0000 (11:48 -0800)]
Bump 'bdk-macros' version to 0.3.0

4 years agoBump 'bdk-testutils' version to 0.3.0
Steve Myers [Wed, 17 Feb 2021 19:45:46 +0000 (11:45 -0800)]
Bump 'bdk-testutils' version to 0.3.0

4 years agoBump 'bdk-testutils-macros' version to 0.3.0
Steve Myers [Wed, 17 Feb 2021 19:42:59 +0000 (11:42 -0800)]
Bump 'bdk-testutils-macros' version to 0.3.0

4 years agoSmall CHANGELOG cleanup
Steve Myers [Wed, 17 Feb 2021 20:04:59 +0000 (12:04 -0800)]
Small CHANGELOG cleanup

4 years ago[descriptor] Perform additional checks before using a descriptor
Alekos Filini [Mon, 15 Feb 2021 16:33:47 +0000 (11:33 -0500)]
[descriptor] Perform additional checks before using a descriptor

Fixes #287

4 years agoMerge commit 'refs/pull/290/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Tue, 16 Feb 2021 16:54:52 +0000 (11:54 -0500)]
Merge commit 'refs/pull/290/head' of github.com:bitcoindevkit/bdk

4 years agoDon't fix tokio minor version
Lloyd Fournier [Tue, 16 Feb 2021 05:31:55 +0000 (16:31 +1100)]
Don't fix tokio minor version

This is also what they give as an example in their docs: https://docs.rs/tokio/1.2.0/tokio/

4 years agoDon't fix tokio minor version
Lloyd Fournier [Tue, 16 Feb 2021 05:31:55 +0000 (16:31 +1100)]
Don't fix tokio minor version

This is also what they give as an example in their docs: https://docs.rs/tokio/1.2.0/tokio/

4 years ago[ci] Manually set rust stable version in CI pipeline
Steve Myers [Mon, 15 Feb 2021 22:17:30 +0000 (14:17 -0800)]
[ci] Manually set rust stable version in CI pipeline

4 years ago[policy] Allow specifying a policy path for `Multisig`
Alekos Filini [Sat, 13 Feb 2021 16:00:03 +0000 (11:00 -0500)]
[policy] Allow specifying a policy path for `Multisig`

While technically it's not required since there are no timelocks inside,
it's still less confusing for the end user if we allow this instead of
failing like we do currently.

4 years ago[policy] Remove the `TooManyItemsSelected` error
Alekos Filini [Sat, 13 Feb 2021 15:58:26 +0000 (10:58 -0500)]
[policy] Remove the `TooManyItemsSelected` error

The `TooManyItemsSelected` error has been removed, since it's not technically an
error but potentailly more of an "over-constraint" over a tx: for instance,
given a `thresh(3,pk(a),pk(b),older(10),older(20))` descriptor one could create
a spending tx with the `[0,1,2]` items that would only be spendable after `10`
blocks, or a tx with the `[0,2,3]` items that would be spendable after `20`.

In this case specifying more items than the threshold would create a tx with
the maximum constraint possible, in this case the `20` blocks. This is not
necessarily an error, so we should allow it without failing.

4 years agoMerge branch 'master' into release/0.4.0
Alekos Filini [Sat, 13 Feb 2021 16:08:03 +0000 (11:08 -0500)]
Merge branch 'master' into release/0.4.0

Merging in fixes for the CI after Rust 1.50.0

4 years agoRename ToDescriptorKey to IntoDescriptorKey
Steve Myers [Sat, 13 Feb 2021 07:02:13 +0000 (23:02 -0800)]
Rename ToDescriptorKey to IntoDescriptorKey

4 years agoRename ToWalletDescriptor to IntoWalletDescriptor
Steve Myers [Sat, 13 Feb 2021 06:34:43 +0000 (22:34 -0800)]
Rename ToWalletDescriptor to IntoWalletDescriptor

4 years agoUpdate CHANGELOG for rust 1.50.0 clippy changes
Steve Myers [Thu, 11 Feb 2021 19:34:06 +0000 (11:34 -0800)]
Update CHANGELOG for rust 1.50.0 clippy changes

4 years agoFix clippy warn on compact_filters peer::_recv()
Steve Myers [Thu, 11 Feb 2021 21:08:21 +0000 (13:08 -0800)]
Fix clippy warn on compact_filters peer::_recv()

4 years agoFix clippy warning 'wrong_self_convention'
Steve Myers [Thu, 11 Feb 2021 19:00:48 +0000 (11:00 -0800)]
Fix clippy warning 'wrong_self_convention'

4 years agoFix clippy warning 'unnecessary_wraps'
Steve Myers [Thu, 11 Feb 2021 18:58:44 +0000 (10:58 -0800)]
Fix clippy warning 'unnecessary_wraps'

4 years agoUpdate version in the examples
Alekos Filini [Thu, 11 Feb 2021 14:29:44 +0000 (09:29 -0500)]
Update version in the examples

4 years agoUpdate CHANGELOG for release v0.4.0
Alekos Filini [Thu, 11 Feb 2021 14:29:27 +0000 (09:29 -0500)]
Update CHANGELOG for release v0.4.0

4 years agoBump version to 0.4.0-rc.1
Alekos Filini [Thu, 11 Feb 2021 14:27:34 +0000 (09:27 -0500)]
Bump version to 0.4.0-rc.1

4 years agocompact filters balance example
Riccardo Casatta [Fri, 27 Nov 2020 16:52:30 +0000 (17:52 +0100)]
compact filters balance example

4 years agoMerge commit 'refs/pull/278/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Fri, 5 Feb 2021 22:22:52 +0000 (17:22 -0500)]
Merge commit 'refs/pull/278/head' of github.com:bitcoindevkit/bdk

4 years agoProperly handle the `Signet` network
Alekos Filini [Fri, 5 Feb 2021 15:23:17 +0000 (10:23 -0500)]
Properly handle the `Signet` network

Closes #62

4 years ago[compact_filters] Use the new rust-bitcoin API
Alekos Filini [Wed, 3 Feb 2021 00:52:44 +0000 (19:52 -0500)]
[compact_filters] Use the new rust-bitcoin API

4 years agoUpdate changelog
Alekos Filini [Wed, 3 Feb 2021 01:09:40 +0000 (20:09 -0500)]
Update changelog

4 years agoUpdate bitcoin, miniscript, electrum-client
Alekos Filini [Fri, 5 Feb 2021 21:51:13 +0000 (16:51 -0500)]
Update bitcoin, miniscript, electrum-client

4 years agoUpdate bitcoin, miniscript, electrum-client
Alekos Filini [Wed, 3 Feb 2021 01:06:40 +0000 (20:06 -0500)]
Update bitcoin, miniscript, electrum-client

4 years agoMerge commit 'refs/pull/274/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Wed, 3 Feb 2021 15:14:16 +0000 (10:14 -0500)]
Merge commit 'refs/pull/274/head' of github.com:bitcoindevkit/bdk

4 years agoUn-pin the version of `cc`
Alekos Filini [Wed, 3 Feb 2021 14:42:23 +0000 (09:42 -0500)]
Un-pin the version of `cc`

Fixes #183

4 years agoEmit specific compile error if incompatible features are enabled
Lucas Soriano del Pino [Wed, 3 Feb 2021 06:29:24 +0000 (17:29 +1100)]
Emit specific compile error if incompatible features are enabled

This is motivated by the feature `electrum` being part of the
`default` features of this crate. It is easy to naively enable
`esplora` and `async-interface` and forget that `electrum` is enabled
by default, running into not so obvious compile errors.

4 years agoMerge branch 'master' into make_txbuilder_take_ref_to_wallet
LLFourn [Sat, 30 Jan 2021 02:12:13 +0000 (13:12 +1100)]
Merge branch 'master' into make_txbuilder_take_ref_to_wallet

4 years agoFix whitespace and curse emacs
LLFourn [Sat, 30 Jan 2021 02:05:23 +0000 (13:05 +1100)]
Fix whitespace and curse emacs

4 years agoFix CHANGELOG to mention s/utxos/add_utxos/
LLFourn [Sat, 30 Jan 2021 01:58:05 +0000 (12:58 +1100)]
Fix CHANGELOG to mention s/utxos/add_utxos/

4 years agoMerge commit 'refs/pull/270/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Fri, 29 Jan 2021 20:24:39 +0000 (15:24 -0500)]
Merge commit 'refs/pull/270/head' of github.com:bitcoindevkit/bdk

4 years ago[keys] Improve the API of `DerivableKey`
Alekos Filini [Tue, 26 Jan 2021 16:48:44 +0000 (11:48 -0500)]
[keys] Improve the API of `DerivableKey`

A new `ExtendedKey` type has been added, which is basically an enum of
`bip32::ExtendedPubKey` and `bip32::ExtendedPrivKey`, with some extra metadata
regarding the `ScriptContext`.

This type has some methods that make it very easy to extract its content as
either an `xprv` or `xpub`.

The `DerivableKey` trait has been updated so that the user now only has to
implement a method (`DerivableKey::into_extended_key()`) to perform the
conversion into an `ExtendedKey`.

The method that was previously called `add_metadata()` has now been renamed
to `into_descriptor_key()`, and it has
a blanket implementation.

4 years agoMake maintain_single_recipient return a Result
LLFourn [Fri, 29 Jan 2021 01:10:22 +0000 (12:10 +1100)]
Make maintain_single_recipient return a Result

preferable to panicking.

4 years ago[ci] Update rust toolchains
Steve Myers [Wed, 27 Jan 2021 22:00:44 +0000 (14:00 -0800)]
[ci] Update rust toolchains

4 years ago[signer] Add `Signer::id()`
Alekos Filini [Mon, 25 Jan 2021 20:04:56 +0000 (15:04 -0500)]
[signer] Add `Signer::id()`

Closes #261

4 years agoFix the crate version in `src/lib.rs`
Alekos Filini [Tue, 26 Jan 2021 14:34:14 +0000 (09:34 -0500)]
Fix the crate version in `src/lib.rs`

4 years agoAdd a function to return the version of BDK at runtime
Alekos Filini [Mon, 25 Jan 2021 20:13:45 +0000 (15:13 -0500)]
Add a function to return the version of BDK at runtime

4 years agoMerge branch 'master' into make_txbuilder_take_ref_to_wallet
Lloyd Fournier [Sat, 23 Jan 2021 06:36:01 +0000 (17:36 +1100)]
Merge branch 'master' into make_txbuilder_take_ref_to_wallet

4 years agoMerge commit 'refs/pull/174/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Fri, 22 Jan 2021 15:38:17 +0000 (10:38 -0500)]
Merge commit 'refs/pull/174/head' of github.com:bitcoindevkit/bdk

4 years agoAdd "add_utxos" method on TxBuilder
LLFourn [Fri, 22 Jan 2021 03:59:01 +0000 (14:59 +1100)]
Add "add_utxos" method on TxBuilder

To replace the previously existing ".utxos"

4 years agoRemove not very useful comment
LLFourn [Fri, 22 Jan 2021 03:14:50 +0000 (14:14 +1100)]
Remove not very useful comment

Thanks @tcharding.

4 years agoDerive Clone + Debug for TxBuilder
LLFourn [Fri, 22 Jan 2021 03:11:29 +0000 (14:11 +1100)]
Derive Clone + Debug for TxBuilder

And make Wallet Debug while I'm at it.

4 years agoRevert back to Vec to hold utxos in builder
LLFourn [Fri, 22 Jan 2021 03:04:06 +0000 (14:04 +1100)]
Revert back to Vec to hold utxos in builder

Due to brain malfunction I made utxos into a BTree. This made a test
pass but is incorrect. The test itself was incorrect as per comment in

https://github.com/bitcoindevkit/bdk/pull/258#issuecomment-758370380

So I (1) reverted utxos back to a Vec, (2) fixed the test and expanded
the comment in the test.

4 years agoRemove Option trickery from TxBuilder API
LLFourn [Mon, 11 Jan 2021 03:14:14 +0000 (14:14 +1100)]
Remove Option trickery from TxBuilder API

see: https://github.com/bitcoindevkit/bdk/pull/258#issuecomment-754685962

4 years agoAssert that `.finish()` hasn't been called already in coin_selection
LLFourn [Tue, 5 Jan 2021 01:08:43 +0000 (12:08 +1100)]
Assert that `.finish()` hasn't been called already in coin_selection

4 years agoAdd comment explaining why params and coin_selection are Options
LLFourn [Tue, 5 Jan 2021 00:43:49 +0000 (11:43 +1100)]
Add comment explaining why params and coin_selection are Options

4 years agoFix wrong doc links
LLFourn [Mon, 4 Jan 2021 21:46:23 +0000 (08:46 +1100)]
Fix wrong doc links

4 years agoMake testutils dependency path relative
LLFourn [Sat, 2 Jan 2021 02:24:14 +0000 (13:24 +1100)]
Make testutils dependency path relative

4 years agoUpdate Changelog for Tx creation overhaul
LLFourn [Fri, 1 Jan 2021 03:52:10 +0000 (14:52 +1100)]
Update Changelog for Tx creation overhaul

4 years ago[wallet] Use doctest_wallet!() to remove some no_runs from doctests
LLFourn [Fri, 1 Jan 2021 03:15:24 +0000 (14:15 +1100)]
[wallet] Use doctest_wallet!() to remove some no_runs from doctests

...and improve the fee bumping example while trying to make it
no_run (but failed).

4 years ago[wallet] Overhaul TxBuilder internals and externals
LLFourn [Fri, 1 Jan 2021 02:35:05 +0000 (13:35 +1100)]
[wallet] Overhaul TxBuilder internals and externals

Fixes #251

TxBuilders are now not created directly but are created through the
wallet with `build_tx` and `build_fee_bump`.
The advantages of this realised in this commit are:

1. Normal tx creation and fee bumping use the code internally. The only
difference between normal tx and fee bump is how the builder is created.
2. The TxBuilder now has a refernce to the wallet and can therefore
lookup things as methods are called on it. `add_utxo` now uses this to
look up UTXO deta when it is called (rather than having to do it and
possibly error later on).

To support these changes `get_utxo` and `get_descriptor_for_keychain`
public methods have been added to Wallet. I could have kept them
pub(crate) but they seem like fine APIs to have publicly.

4 years agoChange "received_tx" into "populate_test_db" macro
LLFourn [Fri, 1 Jan 2021 02:22:33 +0000 (13:22 +1100)]
Change "received_tx" into "populate_test_db" macro

A `[cfg(test)]` function is not as helpful as a macro since it can't be
called in the context of a doctest.

Also adds doctest_wallet macro which can be used to create a wallet in a
doctest.

4 years agoMerge branch 'release/0.3.0'
Alekos Filini [Wed, 20 Jan 2021 15:59:09 +0000 (10:59 -0500)]
Merge branch 'release/0.3.0'

4 years agoBump version to 0.3.1-dev github/release/0.3.0
Alekos Filini [Wed, 20 Jan 2021 15:58:04 +0000 (10:58 -0500)]
Bump version to 0.3.1-dev

4 years agoBump version to 0.3.0 v0.3.0
Alekos Filini [Wed, 20 Jan 2021 15:39:24 +0000 (10:39 -0500)]
Bump version to 0.3.0

4 years agoUpdate CHANGELOG.md in preparation of tag `v0.3.0`
Alekos Filini [Wed, 20 Jan 2021 15:27:28 +0000 (10:27 -0500)]
Update CHANGELOG.md in preparation of tag `v0.3.0`

4 years agoUse contains combinator
Tobin Harding [Mon, 18 Jan 2021 08:28:18 +0000 (19:28 +1100)]
Use contains combinator

As suggested by clippy, use the `contains` combinator instead of doing
manual range check on floats.

4 years agoUse contains combinator
Tobin Harding [Mon, 18 Jan 2021 08:28:18 +0000 (19:28 +1100)]
Use contains combinator

As suggested by clippy, use the `contains` combinator instead of doing
manual range check on floats.

4 years agoAdd full stops to list items
Tobin Harding [Fri, 15 Jan 2021 21:45:04 +0000 (08:45 +1100)]
Add full stops to list items

Super anal patch to make list items uniform, add full stop to the items
where it is missing.

4 years agoRemove unexplainable newlines
Tobin Harding [Fri, 15 Jan 2021 21:40:55 +0000 (08:40 +1100)]
Remove unexplainable newlines

It seems the documentation of this project uses arbitrarily long
lines (i.e. no set column width) along with the occasional newline
before some sentences (within a paragraph). When to split a sentence
onto a newline does not seem to follow any discernible pattern.

There are a few instances of newline characters appearing randomly in
the middle of a sentence and since, as observed above, there is no
fixed column width is use these new lines are out of place.

Remove them so the documentation is slightly more uniform and nice to
read in an editor.

This patch is whitespace only, no other textual changes.

4 years agoDo minor grammar fix
Tobin Harding [Fri, 15 Jan 2021 21:29:07 +0000 (08:29 +1100)]
Do minor grammar fix

4 years ago[wallet] Add "needed" and "available" metadata to Error::InsufficientFunds
Justin Moon [Wed, 18 Nov 2020 00:05:33 +0000 (18:05 -0600)]
[wallet] Add "needed" and "available" metadata to Error::InsufficientFunds

4 years agoUpdate CHANGELOG
Justin Moon [Thu, 14 Jan 2021 05:04:23 +0000 (23:04 -0600)]
Update CHANGELOG

4 years ago[wallet] Add "needed" and "available" metadata to Error::InsufficientFunds
Justin Moon [Wed, 18 Nov 2020 00:05:33 +0000 (18:05 -0600)]
[wallet] Add "needed" and "available" metadata to Error::InsufficientFunds

4 years ago[blockchain] Upgrade tokio
Justin Moon [Wed, 18 Nov 2020 00:27:01 +0000 (18:27 -0600)]
[blockchain] Upgrade tokio

- Also upgrade reqwest
- Switch to `tokio::runtime::Builder::new_single_thread()` because
`tokio::runtime::Runtime::new()` changed it's behavior to create a
multithreaded runtime.
- `enable_all` enables time and io resource drivers as explained
[here](https://docs.rs/tokio/0.2.24/tokio/runtime/index.html#resource-drivers)

4 years agoBump version to 0.3.0-rc.1
Alekos Filini [Tue, 12 Jan 2021 20:41:30 +0000 (21:41 +0100)]
Bump version to 0.3.0-rc.1

4 years agoMerge commit 'refs/pull/264/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Tue, 12 Jan 2021 13:02:41 +0000 (14:02 +0100)]
Merge commit 'refs/pull/264/head' of github.com:bitcoindevkit/bdk

4 years agodescriptor: Use `DescriptorError` instead of `Error` when reasonable
Alekos Filini [Mon, 11 Jan 2021 12:12:01 +0000 (13:12 +0100)]
descriptor: Use `DescriptorError` instead of `Error` when reasonable

Change the return type of the `descriptor!()` macro and `ToWalletDescriptor` to
avoid having to map errors.

Also introduce more checks to validate descriptors built using the macro.

4 years agoPermit to not set timeout in ElectrumBlockchainConfig
Riccardo Casatta [Mon, 11 Jan 2021 10:37:34 +0000 (11:37 +0100)]
Permit to not set timeout in ElectrumBlockchainConfig

Allowing to use socks5 which requires None timeout

4 years agoFix crates.io license info
Steve Myers [Fri, 8 Jan 2021 18:20:02 +0000 (10:20 -0800)]
Fix crates.io license info

5 years agoMerge commit 'refs/pull/260/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Tue, 5 Jan 2021 15:06:32 +0000 (16:06 +0100)]
Merge commit 'refs/pull/260/head' of github.com:bitcoindevkit/bdk

5 years agoMerge commit 'refs/pull/248/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Tue, 5 Jan 2021 15:04:53 +0000 (16:04 +0100)]
Merge commit 'refs/pull/248/head' of github.com:bitcoindevkit/bdk

5 years agoMerge commit 'refs/pull/257/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Tue, 5 Jan 2021 15:01:15 +0000 (16:01 +0100)]
Merge commit 'refs/pull/257/head' of github.com:bitcoindevkit/bdk

5 years ago[ci] Fail 'Build docs' job if warnings
Steve Myers [Tue, 5 Jan 2021 00:20:47 +0000 (16:20 -0800)]
[ci] Fail 'Build docs' job if warnings

5 years agoRemove 'cli.rs' module, 'cli-utils' feature and 'repl.rs' example
Steve Myers [Tue, 22 Dec 2020 02:38:35 +0000 (18:38 -0800)]
Remove 'cli.rs' module, 'cli-utils' feature and 'repl.rs' example