]>
Untitled Git - bdk/log
Alekos Filini [Fri, 16 Jul 2021 09:23:17 +0000 (11:23 +0200)]
Merge commit 'refs/pull/371/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Fri, 16 Jul 2021 07:05:51 +0000 (09:05 +0200)]
Merge commit 'refs/pull/393/head' of github.com:bitcoindevkit/bdk
Lloyd Fournier [Wed, 14 Jul 2021 06:43:02 +0000 (16:43 +1000)]
Apply typo fixes from @tcharding
Co-authored-by: Tobin C. Harding <me@tobin.cc>
Steve Myers [Tue, 13 Jul 2021 23:10:30 +0000 (16:10 -0700)]
Merge commit 'refs/pull/388/head' of github.com:bitcoindevkit/bdk
Steve Myers [Tue, 13 Jul 2021 22:12:53 +0000 (15:12 -0700)]
Merge commit 'refs/pull/375/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Mon, 12 Jul 2021 12:26:05 +0000 (14:26 +0200)]
Merge commit 'refs/pull/389/head' of github.com:bitcoindevkit/bdk
Riccardo Casatta [Mon, 12 Jul 2021 08:06:08 +0000 (10:06 +0200)]
[docs] clarify when the fee could be unknown
LLFourn [Mon, 12 Jul 2021 06:26:29 +0000 (16:26 +1000)]
Replace set_single_recipient with drain_to
What set_single_recipient does turns out to be useful with multiple
recipients.
Effectively, set_single_recipient was simply creating a change
output that was arbitrarily required to be the only output.
But what if you want to send excess funds to one address but still have
additional recipients who receive a fixed value?
Generalizing this to `drain_to` simplifies the logic and removes several
error cases while also allowing new use cases.
"maintain_single_recipient" is also replaced with "allow_shrinking"
which has more general semantics.
LLFourn [Wed, 16 Jun 2021 02:43:32 +0000 (12:43 +1000)]
Replace set_single_recipient with drain_to
What set_single_recipient does turns out to be useful with multiple
recipients.
Effectively, set_single_recipient was simply creating a change
output that was arbitrarily required to be the only output.
But what if you want to send excess funds to one address but still have
additional recipients who receive a fixed value?
Generalizing this to `drain_to` simplifies the logic and removes several
error cases while also allowing new use cases.
"maintain_single_recipient" is also replaced with "allow_shrinking"
which has more general semantics.
Alekos Filini [Fri, 9 Jul 2021 07:11:02 +0000 (09:11 +0200)]
[rpc] Show in the docs that the RPC APIs are feature-gated
Alekos Filini [Thu, 8 Jul 2021 13:20:28 +0000 (15:20 +0200)]
Bump version to 0.9.1-dev
Alekos Filini [Thu, 8 Jul 2021 11:37:19 +0000 (13:37 +0200)]
Bump version to 0.9.0
Alekos Filini [Thu, 8 Jul 2021 11:37:05 +0000 (13:37 +0200)]
Update version in `src/lib.rs`
Alekos Filini [Thu, 8 Jul 2021 11:36:20 +0000 (13:36 +0200)]
Update CHANGELOG
Tobin Harding [Thu, 8 Jul 2021 01:33:39 +0000 (11:33 +1000)]
Add Vbytes trait
We convert weight units into vbytes in various places. Lets add a trait
to do it, this makes the code slightly cleaner.
Alekos Filini [Tue, 6 Jul 2021 07:58:40 +0000 (09:58 +0200)]
Merge commit 'refs/pull/383/head' of github.com:bitcoindevkit/bdk into release/0.9.0
Alekos Filini [Tue, 6 Jul 2021 07:58:22 +0000 (09:58 +0200)]
Merge commit 'refs/pull/383/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Tue, 6 Jul 2021 07:57:22 +0000 (09:57 +0200)]
Merge commit 'refs/pull/385/head' of github.com:bitcoindevkit/bdk into release/0.9.0
Evgenii P [Sat, 3 Jul 2021 07:08:38 +0000 (14:08 +0700)]
rustfmt
Evgenii P [Sat, 3 Jul 2021 06:52:05 +0000 (13:52 +0700)]
dsl: add regression test for and_or() descriptor
Evgenii P [Sat, 3 Jul 2021 06:51:43 +0000 (13:51 +0700)]
dsl: fix descriptor macro when and_or() used
Alekos Filini [Fri, 2 Jul 2021 08:09:09 +0000 (10:09 +0200)]
Build the `rpc` feature on docs.rs
Alekos Filini [Fri, 2 Jul 2021 08:07:44 +0000 (10:07 +0200)]
[rpc] Mark the RPC backend as experimental
Alekos Filini [Fri, 2 Jul 2021 08:09:09 +0000 (10:09 +0200)]
Build the `rpc` feature on docs.rs
Alekos Filini [Fri, 2 Jul 2021 08:07:44 +0000 (10:07 +0200)]
[rpc] Mark the RPC backend as experimental
Alekos Filini [Fri, 2 Jul 2021 08:06:31 +0000 (10:06 +0200)]
Bump version to 0.9.0-rc.1
Alekos Filini [Fri, 18 Jun 2021 11:22:50 +0000 (13:22 +0200)]
[verify] Build the `verify` feature on docs.rs
Alekos Filini [Fri, 18 Jun 2021 11:21:21 +0000 (13:21 +0200)]
[verify] Use `impl_error!()` whenever possible
Alekos Filini [Fri, 18 Jun 2021 11:16:58 +0000 (13:16 +0200)]
[verify] Add documentation
Alekos Filini [Fri, 18 Jun 2021 11:13:45 +0000 (13:13 +0200)]
[verify] Cache txs to avoid multiple db/network lookups
Alekos Filini [Thu, 1 Jul 2021 14:31:11 +0000 (16:31 +0200)]
[wallet] Verify unconfirmed transactions after syncing
Verify the unconfirmed transactions we download against the consensus
rules. This is currently exposed as an extra `verify` feature, since it
depends on a pre-release version of `bitcoinconsensus`.
Closes #352
Alekos Filini [Thu, 27 May 2021 14:58:42 +0000 (16:58 +0200)]
[wallet] Verify unconfirmed transactions after syncing
Verify the unconfirmed transactions we download against the consensus
rules. This is currently exposed as an extra `verify` feature, since it
depends on a pre-release version of `bitcoinconsensus`.
Closes #352
Riccardo Casatta [Tue, 29 Jun 2021 09:30:45 +0000 (11:30 +0200)]
fix readme
Riccardo Casatta [Mon, 28 Jun 2021 14:12:25 +0000 (16:12 +0200)]
update github ci removing electrs download and fixing cache
Riccardo Casatta [Mon, 28 Jun 2021 13:04:17 +0000 (15:04 +0200)]
use electrsd with feature to download the binary
Riccardo Casatta [Wed, 23 Jun 2021 12:47:45 +0000 (14:47 +0200)]
use bitcoind with feature to download the binary
Riccardo Casatta [Mon, 21 Jun 2021 11:56:09 +0000 (13:56 +0200)]
use cfg! instead of #[cfg] and use semver
Riccardo Casatta [Fri, 18 Jun 2021 12:28:40 +0000 (14:28 +0200)]
Remove container and test blockchains downloading backends executables
Riccardo Casatta [Thu, 17 Jun 2021 14:03:33 +0000 (16:03 +0200)]
trigger electrs when polling
Riccardo Casatta [Thu, 17 Jun 2021 12:13:17 +0000 (14:13 +0200)]
remove serial_test
Riccardo Casatta [Thu, 17 Jun 2021 11:48:46 +0000 (13:48 +0200)]
use bitcoind and electrsd crate to launch daemons
Riccardo Casatta [Thu, 17 Jun 2021 09:44:49 +0000 (11:44 +0200)]
bump bitcoind dep to 0.11.0
Alekos Filini [Wed, 16 Jun 2021 10:39:59 +0000 (12:39 +0200)]
[testutils] Allow the generated blockchain tests to access `test_client`
William Casarin [Sun, 30 May 2021 15:50:02 +0000 (08:50 -0700)]
add Copy trait to Progress types
Alekos Filini [Mon, 21 Jun 2021 09:56:37 +0000 (11:56 +0200)]
Bump CI stable version to `1.53`
Fixes #374
Alekos Filini [Mon, 21 Jun 2021 09:54:56 +0000 (11:54 +0200)]
Fix clippy warnings on `1.53`
Fix `clippy::inconsistent_struct_constructor`: the constructor field
order was inconsistent with the struct declaration.
Alekos Filini [Mon, 21 Jun 2021 07:07:15 +0000 (09:07 +0200)]
Fix CHANGELOG
The `Rpc` backend is not part of the release but it accidentally ended
up there during the merge
Alekos Filini [Fri, 18 Jun 2021 10:54:11 +0000 (12:54 +0200)]
Merge commit 'refs/pull/370/head' of github.com:bitcoindevkit/bdk
Steve Myers [Tue, 15 Jun 2021 22:57:14 +0000 (15:57 -0700)]
[ci] Revert change to run_blockchain_tests.sh back to using container id
Steve Myers [Fri, 11 Jun 2021 23:03:01 +0000 (16:03 -0700)]
[ci] Change blockchain tests to use bitcoind rpc cookie authentication
Steve Myers [Mon, 14 Jun 2021 18:47:39 +0000 (11:47 -0700)]
Merge branch 'release/0.8.0'
Steve Myers [Mon, 14 Jun 2021 18:43:48 +0000 (11:43 -0700)]
Fix CHANGELOG unreleased link
Steve Myers [Mon, 14 Jun 2021 18:40:50 +0000 (11:40 -0700)]
Add CHANGELOG v0.8.0 link
Riccardo Casatta [Sat, 12 Jun 2021 13:01:44 +0000 (15:01 +0200)]
make fee in TransactionDetails Option, add confirmation_time field as Option
confirmation_time contains both a block height and block timestamp and is
Some only for confirmed transaction
Alekos Filini [Fri, 11 Jun 2021 09:41:23 +0000 (11:41 +0200)]
Merge commit 'refs/pull/348/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Fri, 11 Jun 2021 09:29:42 +0000 (11:29 +0200)]
Bump version to 0.8.1-dev
Alekos Filini [Thu, 10 Jun 2021 14:00:01 +0000 (16:00 +0200)]
Bump version to 0.8.0
Alekos Filini [Thu, 10 Jun 2021 13:59:24 +0000 (15:59 +0200)]
Update CHANGELOG
Alekos Filini [Thu, 10 Jun 2021 13:59:08 +0000 (15:59 +0200)]
Bump version in `src/lib.rs`
Riccardo Casatta [Thu, 10 Jun 2021 13:14:00 +0000 (15:14 +0200)]
Use bitcoin's base64 feature for Psbts
Tobin Harding [Tue, 8 Jun 2021 03:57:55 +0000 (13:57 +1000)]
Remove redundant borrows
Clippy emits:
warning: this expression borrows a reference
As suggested remove the borrows from the front of vars that are already references.
Alekos Filini [Wed, 9 Jun 2021 14:05:16 +0000 (16:05 +0200)]
Merge commit 'refs/pull/365/head' of github.com:bitcoindevkit/bdk into release/0.8.0
Tobin Harding [Tue, 11 May 2021 01:10:54 +0000 (11:10 +1000)]
Use no_run instead of ignore
We have an attribute `no_run` that builds but does not run example code
in Rustdocs, this keeps the examples building as the codebase evolves.
use `no_run` and fix example code so it builds cleanly during test run.
Some examples that require the `electrum` feature to be available have
been feature-gated to make sure they aren't accidentally compiled when
that feature is not enabled.
Co-authored-by: Alekos Filini <alekos.filini@gmail.com>
Alekos Filini [Wed, 9 Jun 2021 09:09:57 +0000 (11:09 +0200)]
Remove explicit `feature(external_doc)`
It looks like this is now enabled by default as of `cargo 1.54.0-nightly (
0cecbd673 2021-06-01)`
Alekos Filini [Fri, 4 Jun 2021 13:53:15 +0000 (15:53 +0200)]
Fix example/doctests format
Alekos Filini [Fri, 4 Jun 2021 12:55:25 +0000 (14:55 +0200)]
[ci] Check fmt for examples/doctests
Riccardo Casatta [Fri, 4 Jun 2021 13:05:35 +0000 (15:05 +0200)]
add details to TODO, format doc example
Alekos Filini [Fri, 4 Jun 2021 07:42:14 +0000 (09:42 +0200)]
Bump version to 0.8.0-rc.1
Riccardo Casatta [Thu, 3 Jun 2021 13:10:31 +0000 (15:10 +0200)]
move scan in setup
Riccardo Casatta [Thu, 3 Jun 2021 09:07:39 +0000 (11:07 +0200)]
update bitcoind dep
Riccardo Casatta [Thu, 3 Jun 2021 09:06:24 +0000 (11:06 +0200)]
use storage address instead of satoshi's
Riccardo Casatta [Wed, 2 Jun 2021 08:06:05 +0000 (10:06 +0200)]
always ask node for tx no matter capabilities
Riccardo Casatta [Tue, 1 Jun 2021 14:19:32 +0000 (16:19 +0200)]
correctly initialize UTXO keychain kind
Riccardo Casatta [Tue, 1 Jun 2021 12:18:40 +0000 (14:18 +0200)]
change feature to execute sync from rpc to test-rpc
Riccardo Casatta [Tue, 1 Jun 2021 12:17:37 +0000 (14:17 +0200)]
rename struct to CallResult
Riccardo Casatta [Tue, 1 Jun 2021 12:15:46 +0000 (14:15 +0200)]
match also on signet
Riccardo Casatta [Mon, 31 May 2021 11:35:58 +0000 (13:35 +0200)]
update changelog with rpc feature
Riccardo Casatta [Mon, 17 May 2021 15:20:32 +0000 (17:20 +0200)]
Implements RPC Backend
Paul Miller [Tue, 18 May 2021 15:09:11 +0000 (11:09 -0400)]
Use AddressInfo in private methods
Paul Miller [Mon, 17 May 2021 20:31:18 +0000 (16:31 -0400)]
return AddressInfo from get_address
Alekos Filini [Wed, 26 May 2021 08:34:25 +0000 (10:34 +0200)]
[signer] Add an option to explicitly allow using non-`ALL` sighashes
Instead of blindly using the `sighash_type` set in a psbt input, we
now only sign `SIGHASH_ALL` inputs by default, and require the user to
explicitly opt-in to using other sighashes if they desire to do so.
Fixes #350
Alekos Filini [Wed, 26 May 2021 06:56:38 +0000 (08:56 +0200)]
Merge commit 'refs/pull/347/head' of github.com:bitcoindevkit/bdk
LLFourn [Fri, 21 May 2021 03:21:59 +0000 (13:21 +1000)]
Initialize env_logger at start of blockchain tests
LLFourn [Fri, 21 May 2021 03:21:41 +0000 (13:21 +1000)]
run_blockchain_tests.sh improvements
LLFourn [Thu, 20 May 2021 04:33:02 +0000 (14:33 +1000)]
Uppercase 'Test' so that github can see what's up
It is expecting something named 'Test electrum'
LLFourn [Wed, 19 May 2021 06:22:11 +0000 (16:22 +1000)]
Add script for running the blockchain tests locally
LLFourn [Wed, 19 May 2021 06:10:06 +0000 (16:10 +1000)]
Fix clippy warnings inside testutils macro
Now that it's inside the main repo clippy is having a go at me.
LLFourn [Wed, 19 May 2021 06:09:01 +0000 (16:09 +1000)]
Remove testutils feature so doctests worka again
I wanted to only conditionally compile testutils but it's needed in
doctests which we can't conditionally compile for:
https://github.com/rust-lang/rust/issues/67295
LLFourn [Wed, 19 May 2021 05:52:51 +0000 (15:52 +1000)]
Move blockchain related stuff to blockchain_tests
LLFourn [Wed, 19 May 2021 03:04:32 +0000 (13:04 +1000)]
Merge testutils crate into the main crate
This avoids having to keep the apis in sync between the macros and the
main project.
LLFourn [Tue, 18 May 2021 05:21:48 +0000 (15:21 +1000)]
Run blockchain tests on esplora
They were only being run on electrum before.
Steve Myers [Tue, 18 May 2021 23:41:45 +0000 (16:41 -0700)]
Merge commit 'refs/pull/338/head' of github.com:bitcoindevkit/bdk
LLFourn [Sun, 16 May 2021 05:07:55 +0000 (15:07 +1000)]
Roll blockchain tests proc macro into normal macro
This means one less crate in the repo. Had to do a Default on TestClient
to satisfy clippy.
Steve Myers [Fri, 14 May 2021 17:49:30 +0000 (10:49 -0700)]
Merge commit 'refs/pull/346/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Wed, 12 May 2021 13:11:20 +0000 (15:11 +0200)]
Fix changelog
Alekos Filini [Wed, 12 May 2021 13:10:28 +0000 (15:10 +0200)]
Bump version to 0.7.1-dev
Alekos Filini [Wed, 12 May 2021 12:20:58 +0000 (14:20 +0200)]
Bump version to 0.7.0
Alekos Filini [Wed, 12 May 2021 12:20:23 +0000 (14:20 +0200)]
Use the released `testutils-macros`
Alekos Filini [Wed, 12 May 2021 12:19:58 +0000 (14:19 +0200)]
Bump version in `src/lib.rs`
Alekos Filini [Wed, 12 May 2021 12:19:00 +0000 (14:19 +0200)]
Bump `testutils-macros` to `v0.6.0`