]> Untitled Git - bdk/log
bdk
4 years agoConvert upper-case acronyms as suggested by CamelCase convention
Riccardo Casatta [Tue, 30 Mar 2021 14:33:07 +0000 (16:33 +0200)]
Convert upper-case acronyms as suggested by CamelCase convention

see https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms

4 years agoremove format! from assert! (will be an error in rust edition 2021)
Riccardo Casatta [Tue, 30 Mar 2021 14:19:36 +0000 (16:19 +0200)]
remove format! from assert! (will be an error in rust edition 2021)

4 years agoupgrade CI rust version to 1.51.0
Riccardo Casatta [Tue, 30 Mar 2021 12:59:08 +0000 (14:59 +0200)]
upgrade CI rust version to 1.51.0

4 years agoMerge commit 'refs/pull/314/head' of github.com:bitcoindevkit/bdk
Steve Myers [Tue, 6 Apr 2021 17:21:07 +0000 (10:21 -0700)]
Merge commit 'refs/pull/314/head' of github.com:bitcoindevkit/bdk

4 years agoAvoid over-/underflow error in coin_select
Daniel Karzel [Thu, 1 Apr 2021 05:14:59 +0000 (16:14 +1100)]
Avoid over-/underflow error in coin_select

Adds fix for edge-cases involving small UTXOs (where value < fee) where the coin_select calculation would panic with overflow/underflow errors.
Bitcoin is limited to 21*(10^6), so any Bitcoin amount fits into i64.

4 years agoUse tagged serialization for blockchain config
LLFourn [Thu, 25 Mar 2021 05:28:38 +0000 (16:28 +1100)]
Use tagged serialization for blockchain config

also make the config types Clone and PartialEq

4 years agoMerge commit 'refs/pull/310/head' of github.com:bitcoindevkit/bdk
Steve Myers [Wed, 31 Mar 2021 23:06:53 +0000 (16:06 -0700)]
Merge commit 'refs/pull/310/head' of github.com:bitcoindevkit/bdk

4 years ago[ci] update MSRV to 1.46.0
Steve Myers [Sat, 27 Mar 2021 18:53:41 +0000 (11:53 -0700)]
[ci] update MSRV to 1.46.0

4 years agoMerge branch 'release/0.5.1'
Alekos Filini [Mon, 29 Mar 2021 17:48:00 +0000 (19:48 +0200)]
Merge branch 'release/0.5.1'

4 years agoBump version to 0.5.2-dev github/release/0.5.1
Alekos Filini [Mon, 29 Mar 2021 17:10:47 +0000 (19:10 +0200)]
Bump version to 0.5.2-dev

4 years agoBump version to 0.5.1 v0.5.1
Alekos Filini [Mon, 29 Mar 2021 08:16:17 +0000 (10:16 +0200)]
Bump version to 0.5.1

4 years agoUpdate CHANGELOG.md
Alekos Filini [Mon, 29 Mar 2021 16:27:47 +0000 (18:27 +0200)]
Update CHANGELOG.md

4 years agoPin hyper version to =0.14.4
Steve Myers [Sat, 27 Mar 2021 08:21:34 +0000 (01:21 -0700)]
Pin hyper version to =0.14.4

4 years agoUpdate DEVELOPMENT_CYCLE for unreleased dev-dependencies
Steve Myers [Mon, 22 Mar 2021 17:48:39 +0000 (10:48 -0700)]
Update DEVELOPMENT_CYCLE for unreleased dev-dependencies

4 years agoFix new test to use new get_address() fn
Steve Myers [Mon, 22 Mar 2021 17:26:56 +0000 (10:26 -0700)]
Fix new test to use new get_address() fn

4 years agoFix bdk-testutils-macros version
Steve Myers [Mon, 22 Mar 2021 17:24:21 +0000 (10:24 -0700)]
Fix bdk-testutils-macros version

4 years agoFix 0.5.1-dev CHANGELOG.md
Steve Myers [Sat, 20 Mar 2021 18:42:00 +0000 (11:42 -0700)]
Fix 0.5.1-dev CHANGELOG.md

4 years agoMerge branch 'release/0.5.0' of github.com:bitcoindevkit/bdk
Alekos Filini [Wed, 17 Mar 2021 21:27:44 +0000 (22:27 +0100)]
Merge branch 'release/0.5.0' of github.com:bitcoindevkit/bdk

4 years agoBump version to 0.5.1-dev github/release/0.5.0
Alekos Filini [Wed, 17 Mar 2021 19:58:23 +0000 (20:58 +0100)]
Bump version to 0.5.1-dev

4 years agoBump version to 0.5.0 v0.5.0
Alekos Filini [Wed, 17 Mar 2021 14:21:37 +0000 (15:21 +0100)]
Bump version to 0.5.0

4 years agoBump deps version
Alekos Filini [Wed, 17 Mar 2021 14:17:43 +0000 (15:17 +0100)]
Bump deps version

4 years agoUpdate version in lib.rs
Alekos Filini [Wed, 17 Mar 2021 14:14:35 +0000 (15:14 +0100)]
Update version in lib.rs

4 years agoUpdate CHANGELOG with the new release tag
Alekos Filini [Wed, 17 Mar 2021 14:13:46 +0000 (15:13 +0100)]
Update CHANGELOG with the new release tag

4 years agoMerge commit 'refs/pull/296/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Wed, 17 Mar 2021 10:30:31 +0000 (11:30 +0100)]
Merge commit 'refs/pull/296/head' of github.com:bitcoindevkit/bdk

4 years agoupdate changelog and fix docs
Riccardo Casatta [Tue, 9 Mar 2021 15:59:27 +0000 (16:59 +0100)]
update changelog and fix docs

4 years agobrevity
davemo88 [Tue, 16 Mar 2021 14:20:07 +0000 (10:20 -0400)]
brevity

4 years agoupdate changelog
davemo88 [Tue, 16 Mar 2021 01:58:03 +0000 (21:58 -0400)]
update changelog

4 years agoadd get_psbt_input
davemo88 [Tue, 16 Mar 2021 01:50:51 +0000 (21:50 -0400)]
add get_psbt_input

4 years ago[wallet] Add get_address(AddressIndex::Reset(u32)), update CHANGELOG
Steve Myers [Wed, 10 Mar 2021 23:58:58 +0000 (15:58 -0800)]
[wallet] Add get_address(AddressIndex::Reset(u32)), update CHANGELOG

4 years ago[wallet] Refactor get_*_address() into get_address(AddressIndex), update CHANGELOG
Steve Myers [Tue, 9 Mar 2021 00:17:10 +0000 (16:17 -0800)]
[wallet] Refactor get_*_address() into get_address(AddressIndex), update CHANGELOG

4 years ago[wallet] Add get_unused_address() function, update CHANGELOG
Steve Myers [Mon, 8 Mar 2021 05:57:19 +0000 (21:57 -0800)]
[wallet] Add get_unused_address() function, update CHANGELOG

4 years ago[wallet] Add fetch_index() helper function
Steve Myers [Mon, 8 Mar 2021 05:54:30 +0000 (21:54 -0800)]
[wallet] Add fetch_index() helper function

4 years agoMerge commit 'refs/pull/308/head' of github.com:bitcoindevkit/bdk into release/0.5.0
Alekos Filini [Mon, 15 Mar 2021 09:53:49 +0000 (10:53 +0100)]
Merge commit 'refs/pull/308/head' of github.com:bitcoindevkit/bdk into release/0.5.0

4 years agoMerge commit 'refs/pull/309/head' of github.com:bitcoindevkit/bdk into release/0.5.0
Alekos Filini [Mon, 15 Mar 2021 09:53:29 +0000 (10:53 +0100)]
Merge commit 'refs/pull/309/head' of github.com:bitcoindevkit/bdk into release/0.5.0

4 years agobetter derivation path building
davemo88 [Fri, 12 Mar 2021 02:54:00 +0000 (21:54 -0500)]
better derivation path building

4 years agobetter derivation path building
davemo88 [Fri, 12 Mar 2021 02:35:16 +0000 (21:35 -0500)]
better derivation path building

4 years agohandle descriptor xkey origin
davemo88 [Thu, 11 Mar 2021 22:39:02 +0000 (17:39 -0500)]
handle descriptor xkey origin

4 years ago[ci] Manually install libclang-common-10-dev to 'check-wasm' job
Steve Myers [Thu, 11 Mar 2021 19:02:01 +0000 (11:02 -0800)]
[ci] Manually install libclang-common-10-dev to 'check-wasm' job

4 years agoBump version to 0.5.0-rc.1
Alekos Filini [Thu, 11 Mar 2021 09:07:26 +0000 (10:07 +0100)]
Bump version to 0.5.0-rc.1

4 years ago[policy] Populate satisfaction with singatures already present in a PSBT
Riccardo Casatta [Tue, 23 Feb 2021 16:04:31 +0000 (17:04 +0100)]
[policy] Populate satisfaction with singatures already present in a PSBT

4 years ago[policy] uncomment and update 4 tests: 2 ignored and 2 restored
Riccardo Casatta [Mon, 22 Feb 2021 14:20:09 +0000 (15:20 +0100)]
[policy] uncomment and update 4 tests: 2 ignored and 2 restored

4 years ago[policy] pass existing context instead of new one
Riccardo Casatta [Mon, 22 Feb 2021 10:18:52 +0000 (11:18 +0100)]
[policy] pass existing context instead of new one

4 years ago[policy] pass secp context to setup_keys
Riccardo Casatta [Mon, 22 Feb 2021 10:11:44 +0000 (11:11 +0100)]
[policy] pass secp context to setup_keys

4 years agoUpdate README license badge
Steve Myers [Sat, 6 Mar 2021 00:48:57 +0000 (16:48 -0800)]
Update README license badge

4 years agoUpdate license to Apache 2.0 or MIT, copyright to Bitcoin Dev Kit Developers
Steve Myers [Wed, 3 Mar 2021 21:22:05 +0000 (13:22 -0800)]
Update license to Apache 2.0 or MIT, copyright to Bitcoin Dev Kit Developers

4 years agoMake constructor functions on `FeeRate` const
Thomas Eizinger [Fri, 26 Feb 2021 03:15:46 +0000 (14:15 +1100)]
Make constructor functions on `FeeRate` const

This allows `FeeRate`s to be stored inside `const`s.

For example:

const MY_FEE_RATE: FeeRate = FeeRate::from_sat_per_vb(10.0);

Unfortunately, floating point maths inside const expressions is
still unstable, hence we cannot make `from_btc_per_kvb` const.

4 years agoMerge commit 'refs/pull/285/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Fri, 26 Feb 2021 09:14:01 +0000 (10:14 +0100)]
Merge commit 'refs/pull/285/head' of github.com:bitcoindevkit/bdk

4 years agoMerge commit 'refs/pull/279/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Fri, 26 Feb 2021 09:09:24 +0000 (10:09 +0100)]
Merge commit 'refs/pull/279/head' of github.com:bitcoindevkit/bdk

4 years agoMerge commit 'refs/pull/297/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Fri, 26 Feb 2021 09:00:01 +0000 (10:00 +0100)]
Merge commit 'refs/pull/297/head' of github.com:bitcoindevkit/bdk

4 years ago[descriptor] Ensure that there are no duplicated keys
Alekos Filini [Tue, 23 Feb 2021 14:57:43 +0000 (15:57 +0100)]
[descriptor] Ensure that there are no duplicated keys

4 years agoUpdate electrum-client to 0.7
Thomas Eizinger [Fri, 26 Feb 2021 03:09:46 +0000 (14:09 +1100)]
Update electrum-client to 0.7

4 years agoClean up add_foreign_utxo tests a bit
LLFourn [Thu, 11 Feb 2021 23:35:20 +0000 (10:35 +1100)]
Clean up add_foreign_utxo tests a bit

Noticed some suboptimal things while reviewing myself.

4 years agoImprove docs of satisfaction_weight
LLFourn [Thu, 11 Feb 2021 23:25:57 +0000 (10:25 +1100)]
Improve docs of satisfaction_weight

4 years agoApply typo fixes from @tcharding
Lloyd Fournier [Thu, 11 Feb 2021 23:20:11 +0000 (10:20 +1100)]
Apply typo fixes from @tcharding

Co-authored-by: Tobin C. Harding <me@tobin.cc>
4 years agoAdded `add_foreign_utxo`
LLFourn [Mon, 8 Feb 2021 04:40:56 +0000 (15:40 +1100)]
Added `add_foreign_utxo`

To allow adding UTXOs external to the current wallet.
The caller must provide the psbt::Input so we can create a coherent PSBT
at the end and so this is compatible with existing PSBT workflows.

Main changes:

- There are now two types of UTXOs, local and foreign reflected in a
`Utxo` enum.
- `WeightedUtxo` now captures floating `(Utxo, usize)` tuples
- `CoinSelectionResult` now has methods on it for distinguishing between
local amount included vs total.

4 years agoMake TxBuilder actually Clone
LLFourn [Mon, 8 Feb 2021 04:25:44 +0000 (15:25 +1100)]
Make TxBuilder actually Clone

it derived Clone but in practice it was never clone because some of the
parameters were not Clone.

4 years agos/UTXO/LocalUtxo/g
LLFourn [Thu, 4 Feb 2021 01:09:53 +0000 (12:09 +1100)]
s/UTXO/LocalUtxo/g

Since this struct has a "keychain" it is not a general "UTXO" but a
local wallet UTXO.

4 years agoUse mixed order insertions
Tobin Harding [Wed, 24 Feb 2021 02:39:36 +0000 (13:39 +1100)]
Use mixed order insertions

Currently we have a unit test to test that signers are sorted by
ordering. We call `add_external` to add them but currently we add them
in the same order we expect them to be in. This means if the
implementation happens to insert them simply in the order they are
added (i.e. insert to end of list) then this test will still pass.

Insert in a mixed order, including one lower followed by one higher -
this ensures we are not inserting at the front or at the back but are
actually sorting based on the `SignerOrdering`.

4 years agoUse id() for DummySigner comparison
Tobin Harding [Wed, 24 Feb 2021 02:23:17 +0000 (13:23 +1100)]
Use id() for DummySigner comparison

If we give the `DummySigner` a valid identifier then we can use this to
do comparison.

Half the time we do comparison we only have a `dyn Signer` so we cannot
use `PartialEq`, add a helper function to check equality (this is in
test code so its not toooo ugly).

Thanks @afilini for the suggestion.

4 years agoAlign multi-line string
Tobin Harding [Wed, 24 Feb 2021 01:32:14 +0000 (12:32 +1100)]
Align multi-line string

Recently we shortened the first line of a multi-line string and failed
to re-align the rest of the lines.

Thanks @afilini

4 years agoAdd cargo check script
Tobin Harding [Wed, 10 Feb 2021 00:18:39 +0000 (11:18 +1100)]
Add cargo check script

We build against various targets on CI, in order to not abuse CI its
nice to see if code is good before pushing.

Add a script that runs `cargo check` with various combinations of
features and targets in order to enable thorough checking of the project
source code during development.

4 years agoRemove unused macro_use
Tobin Harding [Wed, 10 Feb 2021 00:48:53 +0000 (11:48 +1100)]
Remove unused macro_use

Found by Clippy, we don't need this `macro_use` statement.

4 years agoUse lazy_static
Tobin Harding [Wed, 10 Feb 2021 00:41:50 +0000 (11:41 +1100)]
Use lazy_static

`lazy_static` is not imported, this error is hidden behind the
`compact_filters` feature flag.

4 years agoUse map instead of and_then
Tobin Harding [Wed, 10 Feb 2021 00:36:12 +0000 (11:36 +1100)]
Use map instead of and_then

As suggested by Clippy us `map` instead of `and_then` with an inner
option.

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