]>
Untitled Git - bdk/log
Steve Myers [Thu, 11 Feb 2021 21:08:21 +0000 (13:08 -0800)]
Fix clippy warn on compact_filters peer::_recv()
Steve Myers [Thu, 11 Feb 2021 19:00:48 +0000 (11:00 -0800)]
Fix clippy warning 'wrong_self_convention'
Steve Myers [Thu, 11 Feb 2021 18:58:44 +0000 (10:58 -0800)]
Fix clippy warning 'unnecessary_wraps'
Alekos Filini [Thu, 11 Feb 2021 14:29:44 +0000 (09:29 -0500)]
Update version in the examples
Alekos Filini [Thu, 11 Feb 2021 14:29:27 +0000 (09:29 -0500)]
Update CHANGELOG for release v0.4.0
Alekos Filini [Thu, 11 Feb 2021 14:27:34 +0000 (09:27 -0500)]
Bump version to 0.4.0-rc.1
Riccardo Casatta [Fri, 27 Nov 2020 16:52:30 +0000 (17:52 +0100)]
compact filters balance example
Alekos Filini [Fri, 5 Feb 2021 22:22:52 +0000 (17:22 -0500)]
Merge commit 'refs/pull/278/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Fri, 5 Feb 2021 15:23:17 +0000 (10:23 -0500)]
Properly handle the `Signet` network
Closes #62
Alekos Filini [Wed, 3 Feb 2021 00:52:44 +0000 (19:52 -0500)]
[compact_filters] Use the new rust-bitcoin API
Alekos Filini [Wed, 3 Feb 2021 01:09:40 +0000 (20:09 -0500)]
Update changelog
Alekos Filini [Fri, 5 Feb 2021 21:51:13 +0000 (16:51 -0500)]
Update bitcoin, miniscript, electrum-client
Alekos Filini [Wed, 3 Feb 2021 01:06:40 +0000 (20:06 -0500)]
Update bitcoin, miniscript, electrum-client
Alekos Filini [Wed, 3 Feb 2021 15:14:16 +0000 (10:14 -0500)]
Merge commit 'refs/pull/274/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Wed, 3 Feb 2021 14:42:23 +0000 (09:42 -0500)]
Un-pin the version of `cc`
Fixes #183
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.
LLFourn [Sat, 30 Jan 2021 02:12:13 +0000 (13:12 +1100)]
Merge branch 'master' into make_txbuilder_take_ref_to_wallet
LLFourn [Sat, 30 Jan 2021 02:05:23 +0000 (13:05 +1100)]
Fix whitespace and curse emacs
LLFourn [Sat, 30 Jan 2021 01:58:05 +0000 (12:58 +1100)]
Fix CHANGELOG to mention s/utxos/add_utxos/
Alekos Filini [Fri, 29 Jan 2021 20:24:39 +0000 (15:24 -0500)]
Merge commit 'refs/pull/270/head' of github.com:bitcoindevkit/bdk
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.
LLFourn [Fri, 29 Jan 2021 01:10:22 +0000 (12:10 +1100)]
Make maintain_single_recipient return a Result
preferable to panicking.
Steve Myers [Wed, 27 Jan 2021 22:00:44 +0000 (14:00 -0800)]
[ci] Update rust toolchains
Alekos Filini [Mon, 25 Jan 2021 20:04:56 +0000 (15:04 -0500)]
[signer] Add `Signer::id()`
Closes #261
Alekos Filini [Tue, 26 Jan 2021 14:34:14 +0000 (09:34 -0500)]
Fix the crate version in `src/lib.rs`
Alekos Filini [Mon, 25 Jan 2021 20:13:45 +0000 (15:13 -0500)]
Add a function to return the version of BDK at runtime
Lloyd Fournier [Sat, 23 Jan 2021 06:36:01 +0000 (17:36 +1100)]
Merge branch 'master' into make_txbuilder_take_ref_to_wallet
Alekos Filini [Fri, 22 Jan 2021 15:38:17 +0000 (10:38 -0500)]
Merge commit 'refs/pull/174/head' of github.com:bitcoindevkit/bdk
LLFourn [Fri, 22 Jan 2021 03:59:01 +0000 (14:59 +1100)]
Add "add_utxos" method on TxBuilder
To replace the previously existing ".utxos"
LLFourn [Fri, 22 Jan 2021 03:14:50 +0000 (14:14 +1100)]
Remove not very useful comment
Thanks @tcharding.
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.
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.
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
LLFourn [Tue, 5 Jan 2021 01:08:43 +0000 (12:08 +1100)]
Assert that `.finish()` hasn't been called already in coin_selection
LLFourn [Tue, 5 Jan 2021 00:43:49 +0000 (11:43 +1100)]
Add comment explaining why params and coin_selection are Options
LLFourn [Mon, 4 Jan 2021 21:46:23 +0000 (08:46 +1100)]
Fix wrong doc links
LLFourn [Sat, 2 Jan 2021 02:24:14 +0000 (13:24 +1100)]
Make testutils dependency path relative
LLFourn [Fri, 1 Jan 2021 03:52:10 +0000 (14:52 +1100)]
Update Changelog for Tx creation overhaul
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).
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.
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.
Alekos Filini [Wed, 20 Jan 2021 15:59:09 +0000 (10:59 -0500)]
Merge branch 'release/0.3.0'
Alekos Filini [Wed, 20 Jan 2021 15:58:04 +0000 (10:58 -0500)]
Bump version to 0.3.1-dev
Alekos Filini [Wed, 20 Jan 2021 15:39:24 +0000 (10:39 -0500)]
Bump version to 0.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`
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.
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.
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.
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.
Tobin Harding [Fri, 15 Jan 2021 21:29:07 +0000 (08:29 +1100)]
Do minor grammar fix
Justin Moon [Wed, 18 Nov 2020 00:05:33 +0000 (18:05 -0600)]
[wallet] Add "needed" and "available" metadata to Error::InsufficientFunds
Justin Moon [Thu, 14 Jan 2021 05:04:23 +0000 (23:04 -0600)]
Update CHANGELOG
Justin Moon [Wed, 18 Nov 2020 00:05:33 +0000 (18:05 -0600)]
[wallet] Add "needed" and "available" metadata to Error::InsufficientFunds
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)
Alekos Filini [Tue, 12 Jan 2021 20:41:30 +0000 (21:41 +0100)]
Bump version to 0.3.0-rc.1
Alekos Filini [Tue, 12 Jan 2021 13:02:41 +0000 (14:02 +0100)]
Merge commit 'refs/pull/264/head' of github.com:bitcoindevkit/bdk
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.
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
Steve Myers [Fri, 8 Jan 2021 18:20:02 +0000 (10:20 -0800)]
Fix crates.io license info
Alekos Filini [Tue, 5 Jan 2021 15:06:32 +0000 (16:06 +0100)]
Merge commit 'refs/pull/260/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
Alekos Filini [Tue, 5 Jan 2021 15:01:15 +0000 (16:01 +0100)]
Merge commit 'refs/pull/257/head' of github.com:bitcoindevkit/bdk
Steve Myers [Tue, 5 Jan 2021 00:20:47 +0000 (16:20 -0800)]
[ci] Fail 'Build docs' job if warnings
Steve Myers [Tue, 22 Dec 2020 02:38:35 +0000 (18:38 -0800)]
Remove 'cli.rs' module, 'cli-utils' feature and 'repl.rs' example
Steve Myers [Thu, 31 Dec 2020 03:23:35 +0000 (19:23 -0800)]
Fix clippy warnings for compact_filters feature
Steve Myers [Thu, 31 Dec 2020 03:23:00 +0000 (19:23 -0800)]
[ci] Fix clippy step to check matrix features
LLFourn [Tue, 29 Dec 2020 05:36:35 +0000 (16:36 +1100)]
[wallet] Fix details.fees being wrong when change is dust
Alekos Filini [Wed, 23 Dec 2020 17:39:05 +0000 (18:39 +0100)]
Merge commit 'refs/pull/252/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Wed, 23 Dec 2020 16:48:59 +0000 (17:48 +0100)]
Merge commit 'refs/pull/250/head' of github.com:bitcoindevkit/bdk
LLFourn [Wed, 23 Dec 2020 02:48:17 +0000 (13:48 +1100)]
Use () to indicate a missing blockchain
So that:
1. There are no runtime errors
2. There less type annotations needed
3. Less traits and stuff to document
LLFourn [Tue, 22 Dec 2020 03:37:53 +0000 (14:37 +1100)]
Fix incredibly annoying cargo-fmt problem
I must have a newer version of cargo-fmt which stops me from making
commits every time because of this.
Steve Myers [Mon, 21 Dec 2020 17:35:39 +0000 (09:35 -0800)]
[docs] Add badges for crates.io, mit license. Fix docs.rs badge and link
Alekos Filini [Mon, 21 Dec 2020 15:36:29 +0000 (16:36 +0100)]
Fix the changelog after release v0.2.0
Alekos Filini [Mon, 21 Dec 2020 13:51:49 +0000 (14:51 +0100)]
Bump version to 0.2.1-dev
Alekos Filini [Mon, 21 Dec 2020 13:16:14 +0000 (14:16 +0100)]
Bump version to 0.2.0
Alekos Filini [Mon, 21 Dec 2020 13:03:32 +0000 (14:03 +0100)]
Add metadata to Cargo.toml, remove local deps
Alekos Filini [Mon, 21 Dec 2020 11:38:19 +0000 (12:38 +0100)]
Add metadata for `bdk-testutils` and `bdk-testutils-macros`, bump their version
Alekos Filini [Mon, 21 Dec 2020 12:16:05 +0000 (13:16 +0100)]
[testutils-macros] Fix deps features
Alekos Filini [Mon, 21 Dec 2020 11:14:06 +0000 (12:14 +0100)]
Add metadata for `bdk-macros`, bump its version
Alekos Filini [Fri, 18 Dec 2020 11:08:54 +0000 (12:08 +0100)]
Document the development cycle
Alekos Filini [Fri, 18 Dec 2020 09:52:10 +0000 (10:52 +0100)]
Bump version to 0.2.0-rc.1
Alekos Filini [Fri, 18 Dec 2020 09:41:37 +0000 (10:41 +0100)]
Merge commit 'refs/pull/235/head' of github.com:bitcoindevkit/bdk
Steve Myers [Wed, 16 Dec 2020 23:29:46 +0000 (15:29 -0800)]
[ci] Remove unneeded skip step conditionals in CI
Steve Myers [Wed, 16 Dec 2020 23:26:17 +0000 (15:26 -0800)]
Fix empty checkboxes in PR template
Steve Myers [Wed, 16 Dec 2020 22:19:37 +0000 (14:19 -0800)]
[docs] Format code in docs with '--config format_code_in_doc_comments=true'
Steve Myers [Wed, 16 Dec 2020 21:57:01 +0000 (13:57 -0800)]
[docs] Replace all 'allow(missing_docs)' with basic docs
Steve Myers [Wed, 16 Dec 2020 19:33:34 +0000 (11:33 -0800)]
[docs] Add more docs to 'types.rs'
Alekos Filini [Wed, 16 Dec 2020 18:01:16 +0000 (19:01 +0100)]
[keys] impl `ToDescriptorKey` for `&str`
Alekos Filini [Wed, 16 Dec 2020 15:10:22 +0000 (16:10 +0100)]
[descriptor] Make the syntax of `descriptor!()` more consistent
The syntax now is pretty much the same as the normal descriptor syntax,
with the only difference that modifiers cannot be grouped together (i.e.
`sdv:older(144)` must be turned into `s:d:v:older(144)`.
Riccardo Casatta [Wed, 16 Dec 2020 11:10:40 +0000 (12:10 +0100)]
[docs] use only sled instead of crate::sled
Riccardo Casatta [Wed, 16 Dec 2020 11:06:09 +0000 (12:06 +0100)]
[docs] fix NetworkMessage::Ping docs link
Alekos Filini [Wed, 16 Dec 2020 10:11:38 +0000 (11:11 +0100)]
Merge commit 'refs/pull/223/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Wed, 16 Dec 2020 09:48:10 +0000 (10:48 +0100)]
Merge commit 'refs/pull/229/head' of github.com:bitcoindevkit/bdk
Riccardo Casatta [Wed, 16 Dec 2020 08:58:34 +0000 (09:58 +0100)]
always build docs and create artifacts, publish only on master
Steve Myers [Fri, 11 Dec 2020 22:10:11 +0000 (14:10 -0800)]
[docs] Add docs to the 'wallet' module
Steve Myers [Tue, 15 Dec 2020 18:36:47 +0000 (10:36 -0800)]
[ci] Fix publishing coverage to codecov.io
Evgenii P [Tue, 15 Dec 2020 15:40:07 +0000 (22:40 +0700)]
Take ID into account in SignersContainerKey's PartialEq impl
Alekos Filini [Tue, 15 Dec 2020 13:33:59 +0000 (14:33 +0100)]
Merge commit 'refs/pull/228/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Mon, 14 Dec 2020 15:25:59 +0000 (16:25 +0100)]
[wallet] Add tests for `check_nsequence_rbf` and `check_nlocktime`
Alekos Filini [Mon, 7 Dec 2020 13:48:17 +0000 (14:48 +0100)]
[wallet] Set the correct nSequence when RBF and OP_CSV are used
This commit also fixes the timelock comparing logic in the policy module, since
the rules are different for absolute (OP_CLTV) and relative (OP_CSV) timelocks.
Fixes #215