Alekos Filini
e0183ed5c7
Merge commit 'refs/pull/279/head' of github.com:bitcoindevkit/bdk
2021-02-26 10:09:24 +01:00
Alekos Filini
dae900cc59
Merge commit 'refs/pull/297/head' of github.com:bitcoindevkit/bdk
2021-02-26 10:00:01 +01:00
Alekos Filini
4c2042ab01
[descriptor] Ensure that there are no duplicated keys
2021-02-26 09:46:38 +01:00
Thomas Eizinger
2f0ca206f3
Update electrum-client to 0.7
2021-02-26 14:09:46 +11:00
LLFourn
ac7c1bd97b
Clean up add_foreign_utxo tests a bit
...
Noticed some suboptimal things while reviewing myself.
2021-02-26 13:33:52 +11:00
LLFourn
d9a102afa9
Improve docs of satisfaction_weight
2021-02-26 13:33:52 +11:00
Lloyd Fournier
7c1dcd8a72
Apply typo fixes from @tcharding
...
Co-authored-by: Tobin C. Harding <me@tobin.cc>
2021-02-26 13:33:52 +11:00
LLFourn
1fbfeabd77
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.
2021-02-26 13:33:52 +11:00
LLFourn
9a918f285d
Make TxBuilder actually Clone
...
it derived Clone but in practice it was never clone because some of the
parameters were not Clone.
2021-02-26 13:33:52 +11:00
LLFourn
a7183f34ef
s/UTXO/LocalUtxo/g
...
Since this struct has a "keychain" it is not a general "UTXO" but a
local wallet UTXO.
2021-02-26 13:33:52 +11:00
Steve Myers
4ad0f54c30
[ci] Rename MAGICAL_ env vars to BDK_, for tests use wallet name in RPC calls
2021-02-21 19:47:06 -08:00
Steve Myers
eeff3b5049
[ci] Update start-core.sh to create default wallet for bitcoind 0.21.0
2021-02-21 19:04:52 -08:00
Steve Myers
5e352489a0
Merge branch 'release/0.4.0'
2021-02-17 18:33:11 -08:00
Steve Myers
7ee262ef4b
Fix CHANGELOG 'Unreleased' link
2021-02-17 18:30:18 -08:00
Steve Myers
2759231f7b
Bump version to 0.4.1-dev
2021-02-17 16:32:23 -08:00
Steve Myers
e3f893dbd1
Bump version to 0.4.0
v0.4.0
2021-02-17 12:08:43 -08:00
Steve Myers
3f5513a2d6
Update 'bdk-macros', 'bdk-testutils', 'bdk-testutils-macros' dep versions
2021-02-17 12:08:41 -08:00
Steve Myers
fcf5e971a6
Bump 'bdk-macros' version to 0.3.0
2021-02-17 12:08:39 -08:00
Steve Myers
cdf7b33104
Bump 'bdk-testutils' version to 0.3.0
2021-02-17 12:08:37 -08:00
Steve Myers
7bbff79d4b
Bump 'bdk-testutils-macros' version to 0.3.0
2021-02-17 12:08:35 -08:00
Steve Myers
3a2b8bdb85
Small CHANGELOG cleanup
2021-02-17 12:08:33 -08:00
Alekos Filini
7843732e17
[descriptor] Perform additional checks before using a descriptor
...
Fixes #287
2021-02-17 12:08:31 -08:00
Alekos Filini
fa5a5c8c05
Merge commit 'refs/pull/290/head' of github.com:bitcoindevkit/bdk
2021-02-16 11:54:52 -05:00
Lloyd Fournier
6092c6e789
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/
2021-02-16 09:57:54 -05:00
Lloyd Fournier
7fe5a30424
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/
2021-02-16 16:31:55 +11:00
Steve Myers
a82b2155e9
[ci] Manually set rust stable version in CI pipeline
2021-02-15 14:33:10 -08:00
Alekos Filini
b61427c07b
[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.
2021-02-13 11:17:07 -05:00
Alekos Filini
fa2610538f
[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.
2021-02-13 11:10:31 -05:00
Alekos Filini
d0ffcdd009
Merge branch 'master' into release/0.4.0
...
Merging in fixes for the CI after Rust 1.50.0
2021-02-13 11:08:03 -05:00
Steve Myers
1c6864aee8
Rename ToDescriptorKey to IntoDescriptorKey
2021-02-12 23:23:20 -08:00
Steve Myers
d638da2f10
Rename ToWalletDescriptor to IntoWalletDescriptor
2021-02-12 23:23:20 -08:00
Steve Myers
2f7513753c
Update CHANGELOG for rust 1.50.0 clippy changes
2021-02-12 23:23:09 -08:00
Steve Myers
c90a1f70a6
Fix clippy warn on compact_filters peer::_recv()
2021-02-12 22:23:48 -08:00
Steve Myers
04348d0090
Fix clippy warning 'wrong_self_convention'
2021-02-12 22:23:48 -08:00
Steve Myers
eda23491c0
Fix clippy warning 'unnecessary_wraps'
2021-02-12 22:23:29 -08:00
Alekos Filini
dccf09861c
Update version in the examples
2021-02-11 09:29:44 -05:00
Alekos Filini
02b9eda6fa
Update CHANGELOG for release v0.4.0
2021-02-11 09:29:27 -05:00
Alekos Filini
6611ef0e5f
Bump version to 0.4.0-rc.1
2021-02-11 09:27:34 -05:00
Riccardo Casatta
db5e663f05
compact filters balance example
2021-02-10 12:38:07 +01:00
Alekos Filini
c4f21799a6
Merge commit 'refs/pull/278/head' of github.com:bitcoindevkit/bdk
2021-02-05 17:22:52 -05:00
Alekos Filini
fedd92c022
Properly handle the Signet
network
...
Closes #62
2021-02-05 16:51:48 -05:00
Alekos Filini
19eca4e2d1
[compact_filters] Use the new rust-bitcoin API
2021-02-05 16:51:46 -05:00
Alekos Filini
023dabd9b2
Update changelog
2021-02-05 16:51:44 -05:00
Alekos Filini
b44d1f7a92
Update bitcoin, miniscript, electrum-client
2021-02-05 16:51:41 -05:00
Alekos Filini
3d9d6fee07
Update bitcoin, miniscript, electrum-client
2021-02-05 09:11:27 -05:00
Alekos Filini
4c36020e95
Merge commit 'refs/pull/274/head' of github.com:bitcoindevkit/bdk
2021-02-03 10:14:16 -05:00
Alekos Filini
6d01c51c63
Un-pin the version of cc
...
Fixes #183
2021-02-03 09:57:12 -05:00
Lucas Soriano del Pino
693fb24e02
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.
2021-02-03 18:16:13 +11:00
LLFourn
6689384c8a
Merge branch 'master' into make_txbuilder_take_ref_to_wallet
2021-01-30 13:12:13 +11:00
LLFourn
35a61f5759
Fix whitespace and curse emacs
2021-01-30 13:05:23 +11:00