]> Untitled Git - bdk/log
bdk
4 years agoFix cargo doc warning and missing `sqlite` feature github/release/0.12.0
Steve Myers [Thu, 30 Sep 2021 23:11:42 +0000 (16:11 -0700)]
Fix cargo doc warning and missing `sqlite` feature

4 years agoUpdate DEVELOPMENT_CYCLE release instructions
Steve Myers [Thu, 30 Sep 2021 20:38:16 +0000 (13:38 -0700)]
Update DEVELOPMENT_CYCLE release instructions

4 years agoBump version to 0.12.1-dev
Steve Myers [Thu, 30 Sep 2021 20:39:17 +0000 (13:39 -0700)]
Bump version to 0.12.1-dev

4 years agoBump version to 0.12.0 v0.12.0
Steve Myers [Thu, 30 Sep 2021 17:40:51 +0000 (10:40 -0700)]
Bump version to 0.12.0

4 years agoBump bdk-macros version to 0.6.0
Steve Myers [Thu, 30 Sep 2021 17:54:43 +0000 (10:54 -0700)]
Bump bdk-macros version to 0.6.0

4 years agoDowngrade tiny-bip39 to version < 0.8
Steve Myers [Mon, 27 Sep 2021 01:51:03 +0000 (18:51 -0700)]
Downgrade tiny-bip39 to version < 0.8

This is required until BDK MSRV is changed to 1.51 or we replace
tiny-bip39 dependency.

4 years agoBump version to 0.12.0-rc.1
Steve Myers [Fri, 24 Sep 2021 17:25:12 +0000 (10:25 -0700)]
Bump version to 0.12.0-rc.1

4 years agoFix clippy warning
Steve Myers [Fri, 24 Sep 2021 01:42:09 +0000 (18:42 -0700)]
Fix clippy warning

4 years agoMove new CHANGELOG entries to Unreleased
Steve Myers [Fri, 24 Sep 2021 01:28:27 +0000 (18:28 -0700)]
Move new CHANGELOG entries to Unreleased

4 years agoimplement sqlite database
John Cantrell [Fri, 18 Jun 2021 17:45:16 +0000 (13:45 -0400)]
implement sqlite database

4 years agoMerge commit 'refs/pull/442/head' of github.com:bitcoindevkit/bdk
Steve Myers [Thu, 23 Sep 2021 22:28:57 +0000 (15:28 -0700)]
Merge commit 'refs/pull/442/head' of github.com:bitcoindevkit/bdk

4 years ago[esplora] Support proxies in EsploraBlockchain
Alekos Filini [Mon, 30 Aug 2021 13:49:07 +0000 (15:49 +0200)]
[esplora] Support proxies in EsploraBlockchain

4 years agoActivate miniscript/use-serde feature
Lucas Soriano del Pino [Thu, 23 Sep 2021 09:49:06 +0000 (19:49 +1000)]
Activate miniscript/use-serde feature

4 years ago[ci] Change check-wasm job to use ubuntu-20.04 runner
Steve Myers [Wed, 22 Sep 2021 16:51:37 +0000 (09:51 -0700)]
[ci] Change check-wasm job to use ubuntu-20.04 runner

4 years ago[fix-build] Fix version of zeroize_derive to 1.1.0
LLFourn [Tue, 21 Sep 2021 23:52:38 +0000 (09:52 +1000)]
[fix-build] Fix version of zeroize_derive to 1.1.0

4 years ago[rpc] rescan in chunks of 10_000 blocks
Riccardo Casatta [Mon, 13 Sep 2021 12:52:22 +0000 (14:52 +0200)]
[rpc] rescan in chunks of 10_000 blocks

4 years agoMerge commit 'refs/pull/438/head' of github.com:bitcoindevkit/bdk
Steve Myers [Thu, 16 Sep 2021 18:03:52 +0000 (11:03 -0700)]
Merge commit 'refs/pull/438/head' of github.com:bitcoindevkit/bdk

4 years agoMerge commit 'refs/pull/434/head' of github.com:bitcoindevkit/bdk
Steve Myers [Thu, 16 Sep 2021 15:45:53 +0000 (08:45 -0700)]
Merge commit 'refs/pull/434/head' of github.com:bitcoindevkit/bdk

4 years agoUpdate CI blockchain tests github/release/0.11.0
rajarshimaitra [Tue, 31 Aug 2021 09:04:19 +0000 (14:34 +0530)]
Update CI blockchain tests

(cherry picked from commit 10b53a56d71ca4a923464f9cd12b5738f280d84a)

4 years agoTest refactor
rajarshimaitra [Tue, 31 Aug 2021 08:58:10 +0000 (14:28 +0530)]
Test refactor

- Fix esplora module level feature flag
- Move esplora blockchain tests to module, to cover for both variants

(cherry picked from commit 8d1d92e71e61f7c8094b3f3c8ed26b849cc8250b)

4 years agoFix reqwest blockchain test
rajarshimaitra [Tue, 31 Aug 2021 08:56:52 +0000 (14:26 +0530)]
Fix reqwest blockchain test

- add back await_or_block! to bdk-macros
- use await_or_block! in reqwest tests

(cherry picked from commit a41a0030dc212bc3685848c7aa5e9ce12c23720f)

4 years agoUpdate Cargo.toml
rajarshimaitra [Tue, 31 Aug 2021 08:53:24 +0000 (14:23 +0530)]
Update Cargo.toml

- Changed to local bdk-macro
- Added back tokio
- Update esplora-reqwest and test-esplora feature guards

(cherry picked from commit 2459740f7218603447307b20bd3776dc14898a6e)

4 years ago[descriptor] Add a test for `extract_policy()` on `pk_h()` operands
Alekos Filini [Wed, 15 Sep 2021 08:36:50 +0000 (10:36 +0200)]
[descriptor] Add a test for `extract_policy()` on `pk_h()` operands

4 years ago[descriptor] Add an alias for `and_or()`
Alekos Filini [Wed, 15 Sep 2021 08:36:02 +0000 (10:36 +0200)]
[descriptor] Add an alias for `and_or()`

The descriptor syntax encodes it with `andor()`, without the underscore

4 years ago[descriptor] Fix `pk_h()` in the `descriptor!()` macro
Alekos Filini [Wed, 15 Sep 2021 08:35:01 +0000 (10:35 +0200)]
[descriptor] Fix `pk_h()` in the `descriptor!()` macro

Instead of accepting just a `DescriptorPublicKey` it now accepts
anything that implements `IntoDescriptorKey` like `pk_k()` does.

4 years ago[descriptor] Fix `extract_policy()` for descriptors with `pk_h()`
Alekos Filini [Wed, 15 Sep 2021 08:21:38 +0000 (10:21 +0200)]
[descriptor] Fix `extract_policy()` for descriptors with `pk_h()`

4 years agoUpdate CI blockchain tests
rajarshimaitra [Tue, 31 Aug 2021 09:04:19 +0000 (14:34 +0530)]
Update CI blockchain tests

4 years agoTest refactor
rajarshimaitra [Tue, 31 Aug 2021 08:58:10 +0000 (14:28 +0530)]
Test refactor

- Fix esplora module level feature flag
- Move esplora blockchain tests to module, to cover for both variants

4 years agoFix reqwest blockchain test
rajarshimaitra [Tue, 31 Aug 2021 08:56:52 +0000 (14:26 +0530)]
Fix reqwest blockchain test

- add back await_or_block! to bdk-macros
- use await_or_block! in reqwest tests

4 years agoUpdate Cargo.toml
rajarshimaitra [Tue, 31 Aug 2021 08:53:24 +0000 (14:23 +0530)]
Update Cargo.toml

- Changed to local bdk-macro
- Added back tokio
- Update esplora-reqwest and test-esplora feature guards

4 years agoBump version to 0.11.1-dev
Steve Myers [Sat, 4 Sep 2021 18:43:24 +0000 (11:43 -0700)]
Bump version to 0.11.1-dev

4 years agoBump version to 0.11.0 v0.11.0
Steve Myers [Sat, 4 Sep 2021 17:46:03 +0000 (10:46 -0700)]
Bump version to 0.11.0

4 years agoUpdate version in src/lib.rs
Steve Myers [Sat, 4 Sep 2021 17:45:18 +0000 (10:45 -0700)]
Update version in src/lib.rs

4 years agoUpdate changelog
Steve Myers [Sat, 4 Sep 2021 17:44:44 +0000 (10:44 -0700)]
Update changelog

4 years agoMerge commit 'refs/pull/428/head' of github.com:bitcoindevkit/bdk
Steve Myers [Tue, 31 Aug 2021 15:33:07 +0000 (08:33 -0700)]
Merge commit 'refs/pull/428/head' of github.com:bitcoindevkit/bdk

4 years agoUse ureq with default features
rajarshimaitra [Tue, 31 Aug 2021 09:07:50 +0000 (14:37 +0530)]
Use ureq with default features

4 years agoMerge commit 'refs/pull/426/head' of github.com:bitcoindevkit/bdk
Steve Myers [Mon, 30 Aug 2021 19:41:25 +0000 (12:41 -0700)]
Merge commit 'refs/pull/426/head' of github.com:bitcoindevkit/bdk

4 years agoBump version to 0.11.0-rc.1
Steve Myers [Mon, 30 Aug 2021 17:27:24 +0000 (10:27 -0700)]
Bump version to 0.11.0-rc.1

4 years agoFix use statements in populate_test_db macro
Lucas Soriano del Pino [Mon, 30 Aug 2021 04:08:17 +0000 (14:08 +1000)]
Fix use statements in populate_test_db macro

- Use re-exported `bitcoin` so that users of the macro don't need to
depend on `bitcoin` directly.
- Add missing `use std::str::FromStr`.

4 years agoUse re-exported bitcoin and miniscript in testutils macro
Lucas Soriano del Pino [Mon, 30 Aug 2021 03:45:55 +0000 (13:45 +1000)]
Use re-exported bitcoin and miniscript in testutils macro

Otherwise users of the macro must depend on `bitcoin` and `miniscript`
directly, which defeats the point of re-exporting these crates in the
first place.

4 years agoFix CHANGELOG after merging release/0.10.0 branch
Steve Myers [Thu, 19 Aug 2021 19:13:10 +0000 (21:13 +0200)]
Fix CHANGELOG after merging release/0.10.0 branch

4 years agoMerge commit 'refs/pull/411/head' of github.com:bitcoindevkit/bdk
Steve Myers [Wed, 25 Aug 2021 19:55:43 +0000 (21:55 +0200)]
Merge commit 'refs/pull/411/head' of github.com:bitcoindevkit/bdk

4 years agoAdd deprecation policy to CONTRIBUTING.md
Thomas Eizinger [Tue, 17 Aug 2021 01:05:08 +0000 (11:05 +1000)]
Add deprecation policy to CONTRIBUTING.md

4 years agomoving get_funded_wallet out of the test section to make it available for bdk-reserves
Richard Ulrich [Thu, 29 Jul 2021 09:11:16 +0000 (11:11 +0200)]
moving get_funded_wallet out of the test section to make it available for bdk-reserves

4 years agoFix a small typo in log_progress() description
Roman Zeyde [Tue, 24 Aug 2021 19:14:18 +0000 (22:14 +0300)]
Fix a small typo in log_progress() description

4 years agoMerge branch 'release/0.10.0'
Steve Myers [Thu, 19 Aug 2021 17:55:24 +0000 (19:55 +0200)]
Merge branch 'release/0.10.0'

4 years agoRemove unneeded cache paths for test-blockchains CI job github/release/0.10.0
Steve Myers [Wed, 18 Aug 2021 07:10:47 +0000 (09:10 +0200)]
Remove unneeded cache paths for test-blockchains CI job

4 years agoChange dependencies bitcoincore-rpc to core-rpc, update bitcoin to ^0.27 and miniscri...
Steve Myers [Tue, 17 Aug 2021 15:52:07 +0000 (17:52 +0200)]
Change dependencies bitcoincore-rpc to core-rpc, update bitcoin to ^0.27 and miniscript to ^6.0

4 years agoUpdate dev-dependencies electrsd to 0.10
Steve Myers [Tue, 17 Aug 2021 11:41:10 +0000 (13:41 +0200)]
Update dev-dependencies electrsd to 0.10

4 years agoMerge commit 'refs/pull/409/head' of github.com:bitcoindevkit/bdk
Steve Myers [Thu, 19 Aug 2021 12:08:05 +0000 (14:08 +0200)]
Merge commit 'refs/pull/409/head' of github.com:bitcoindevkit/bdk

4 years agoUpdate Database BatchOperations flush() documentation
Steve Myers [Thu, 19 Aug 2021 11:56:38 +0000 (13:56 +0200)]
Update Database BatchOperations flush() documentation

4 years agoRemove unneeded cache paths for test-blockchains CI job
Steve Myers [Wed, 18 Aug 2021 07:10:47 +0000 (09:10 +0200)]
Remove unneeded cache paths for test-blockchains CI job

4 years agoChange dependencies bitcoincore-rpc to core-rpc, update bitcoin to ^0.27 and miniscri...
Steve Myers [Tue, 17 Aug 2021 15:52:07 +0000 (17:52 +0200)]
Change dependencies bitcoincore-rpc to core-rpc, update bitcoin to ^0.27 and miniscript to ^6.0

4 years agoUpdate dev-dependencies electrsd to 0.10
Steve Myers [Tue, 17 Aug 2021 11:41:10 +0000 (13:41 +0200)]
Update dev-dependencies electrsd to 0.10

4 years agoBump version to 0.10.1-dev
Alekos Filini [Mon, 9 Aug 2021 15:00:05 +0000 (17:00 +0200)]
Bump version to 0.10.1-dev

4 years agoBump version to 0.10.0 0.10.0 v0.10.0
Alekos Filini [Mon, 9 Aug 2021 12:58:32 +0000 (14:58 +0200)]
Bump version to 0.10.0

4 years agoUpdate `bdk-macros`
Alekos Filini [Mon, 9 Aug 2021 12:57:58 +0000 (14:57 +0200)]
Update `bdk-macros`

4 years agoBump version of `bdk-macros` to `v0.5.0`
Alekos Filini [Mon, 9 Aug 2021 12:57:06 +0000 (14:57 +0200)]
Bump version of `bdk-macros` to `v0.5.0`

4 years agoUpdate version in `src/lib.rs`
Alekos Filini [Mon, 9 Aug 2021 12:56:22 +0000 (14:56 +0200)]
Update version in `src/lib.rs`

4 years agoUpdate changelog
Alekos Filini [Mon, 9 Aug 2021 12:55:17 +0000 (14:55 +0200)]
Update changelog

4 years agoDisable default features for rocksdb
Tobin Harding [Mon, 2 Aug 2021 09:24:44 +0000 (19:24 +1000)]
Disable default features for rocksdb

In an effort to reduce the build times of `rocksdb` we can set
`default-features` to false.

Please note, the build speed up is minimil

With default features:
```
cargo check --features compact_filters  890.91s user 47.62s system 352% cpu 4:26.55 total
```

Without default features:
```
cargo check --features compact_filters  827.07s user 47.63s system 352% cpu 4:08.39 total
```

Enable `snappy` since it seems like this is the current default compression
algorithm, therefore this patch (hopefully) makes no changes to the usage of the
`rocksdb` library in `bdk`. From the `rocksdb` code:

```
    /// Sets the compression algorithm that will be used for compressing blocks.
    ///
    /// Default: `DBCompressionType::Snappy` (`DBCompressionType::None` if
    /// snappy feature is not enabled).
    ///
    /// # Examples
    ///
    /// ```
    /// use rocksdb::{Options, DBCompressionType};
    ///
    /// let mut opts = Options::default();
    /// opts.set_compression_type(DBCompressionType::Snappy);
    /// ```
    pub fn set_compression_type(&mut self, t: DBCompressionType) {
        ....
```

4 years agoupdate CHANGELOG citing new flush method
Riccardo Casatta [Tue, 27 Jul 2021 10:13:57 +0000 (12:13 +0200)]
update CHANGELOG citing new flush method

4 years agoAdd flush method to Database trait
Riccardo Casatta [Tue, 27 Jul 2021 09:38:11 +0000 (11:38 +0200)]
Add flush method to Database trait

4 years agoin tests enable daemons logging if log level is Debug
Riccardo Casatta [Tue, 3 Aug 2021 10:15:16 +0000 (12:15 +0200)]
in tests enable daemons logging if log level is Debug

4 years agoBump version to 0.10.0-rc.1
Alekos Filini [Fri, 30 Jul 2021 15:47:45 +0000 (17:47 +0200)]
Bump version to 0.10.0-rc.1

4 years agoMove estimate -> fee rate logic to esplora module
Tobin Harding [Wed, 28 Jul 2021 23:58:47 +0000 (09:58 +1000)]
Move estimate -> fee rate logic to esplora module

Currently we have duplicate code for converting the fee estimate we get
back from esplora into a fee rate. This logic can be moved to a separate
function and live in the `esplora` module.

4 years agoImprove feature combinations for ureq/reqwest
Tobin Harding [Wed, 28 Jul 2021 23:39:36 +0000 (09:39 +1000)]
Improve feature combinations for ureq/reqwest

Our features are a bit convoluted, most annoyingly we cannot build with
`--all-features`. However we can make life for users a little easier.

Explicitly we want users to be able to:

- Use async-interface/WASM without using esplora (to implement their own blockchain)
- Use esplora in an ergonomic manner

Currently using esplora requires either reqwest or ureq. Instead of
making the user add all the features manually we can add features that
add the required feature sets, this makes it easier for users to
understand what is required and also makes usage easier.

With this patch applied we can do

- `cargo check --no-default-features --features=use-esplora-reqwest`
- `cargo check --no-default-features --features=use-esplora-ureq`
- `cargo check --features=use-esplora-ureq`
- `cargo check --no-default-features --features=async-trait`

4 years agoAdd a ureq version of esplora module
Tobin Harding [Tue, 1 Jun 2021 06:36:09 +0000 (16:36 +1000)]
Add a ureq version of esplora module

The `Blockchain` implementation for connecting to an Esplora instance is
currently based on `reqwest`. Some users may not wish to use reqwest.

`ureq` is a simple HTTP client (no async) that is useful when `reqwest`
is not suitable.

- Move `esplora.rs` -> `esplora/reqwest.rs`
- Add an implementation based on the `reqwest` esplora code but using `ureq`
- Add feature flags and conditional includes to re-export everything to
  the `esplora` module so we don't effect the rest of the code base.
- Remove the forced dependency on `tokio`.
- Make esplora independent of async-interface
- Depend on local version of macros crate

4 years agoFix float substraction error
codeShark149 [Tue, 27 Jul 2021 19:20:55 +0000 (00:50 +0530)]
Fix float substraction error

4 years agoMerge commit 'refs/pull/407/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Wed, 28 Jul 2021 09:34:41 +0000 (11:34 +0200)]
Merge commit 'refs/pull/407/head' of github.com:bitcoindevkit/bdk

4 years agoMerge commit 'refs/pull/408/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Wed, 28 Jul 2021 09:32:44 +0000 (11:32 +0200)]
Merge commit 'refs/pull/408/head' of github.com:bitcoindevkit/bdk

4 years agoMerge commit 'refs/pull/392/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Tue, 27 Jul 2021 11:23:25 +0000 (13:23 +0200)]
Merge commit 'refs/pull/392/head' of github.com:bitcoindevkit/bdk

4 years agoMerge commit 'refs/pull/398/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Tue, 27 Jul 2021 11:07:56 +0000 (13:07 +0200)]
Merge commit 'refs/pull/398/head' of github.com:bitcoindevkit/bdk

4 years agoadd link to upstream PR
Riccardo Casatta [Tue, 27 Jul 2021 10:17:12 +0000 (12:17 +0200)]
add link to upstream PR

4 years agoUpdate electrsd dep
Riccardo Casatta [Mon, 26 Jul 2021 15:03:09 +0000 (17:03 +0200)]
Update electrsd dep

4 years agoupdate CHANGELOG.md
Riccardo Casatta [Mon, 26 Jul 2021 14:30:34 +0000 (16:30 +0200)]
update CHANGELOG.md

4 years agoUse RPC backend in any
Riccardo Casatta [Tue, 1 Jun 2021 12:09:00 +0000 (14:09 +0200)]
Use RPC backend in any

4 years agoCreate Auth struct proxy of the same upstream struct but serializable
Riccardo Casatta [Mon, 26 Jul 2021 13:55:40 +0000 (15:55 +0200)]
Create Auth struct proxy of the same upstream struct but serializable

4 years agoAdd unit test required not enough
Tobin Harding [Fri, 23 Jul 2021 00:27:16 +0000 (10:27 +1000)]
Add unit test required not enough

Add a unit test that passes a required utxo to the coin selection
algorithm that is less than the required spend. This tests that we get
that utxo included as well as tests that the rest of the coin selection
algorithm code also executes (i.e., that we do not short circuit
incorrectly).

4 years agoReturn early if required UTXOs already big enough
Tobin Harding [Thu, 8 Jul 2021 01:56:05 +0000 (11:56 +1000)]
Return early if required UTXOs already big enough

If the required UTXO set is already bigger (including fees) than the
amount required for the transaction we can return early, no need to go
through the BNB algorithm or random selection.

4 years agoFix vbytes and fee rate code
Tobin Harding [Fri, 16 Jul 2021 05:14:20 +0000 (15:14 +1000)]
Fix vbytes and fee rate code

It was just pointed out that we are calculating the virtual bytes
incorrectly by forgetting to take the ceiling after division by 4 [1]

Add helper functions to encapsulate all weight unit -> virtual byte
calculations including fee to and from fee rate. This makes the code
easier to read, easier to write, and gives us a better chance that bugs
like this will be easier to see.

As an added bonus we can also stop using f32 values for fee amount,
which is by definition an amount in sats so should be a u64. This
removes a bunch of casts and the need for epsilon comparisons and just
deep down feels nice :)

[1] https://github.com/bitcoindevkit/bdk/pull/386#discussion_r670882678

4 years agoFix a small typo in comments
Roman Zeyde [Wed, 21 Jul 2021 18:32:35 +0000 (21:32 +0300)]
Fix a small typo in comments

4 years ago[keys] limit version of zeroize to support rust 1.47+
Steve Myers [Mon, 19 Jul 2021 21:35:16 +0000 (14:35 -0700)]
[keys] limit version of zeroize to support rust 1.47+

4 years agoRemove stop_gap param from Blockchain trait setup and sync functions
Steve Myers [Thu, 15 Jul 2021 19:04:03 +0000 (12:04 -0700)]
Remove stop_gap param from Blockchain trait setup and sync functions

4 years agoAdd stop_gap param to electrum and esplora blockchain configs
Steve Myers [Thu, 15 Jul 2021 17:55:49 +0000 (10:55 -0700)]
Add stop_gap param to electrum and esplora blockchain configs

4 years agoMerge commit 'refs/pull/371/head' of github.com:bitcoindevkit/bdk
Alekos Filini [Fri, 16 Jul 2021 09:23:17 +0000 (11:23 +0200)]
Merge commit 'refs/pull/371/head' of github.com:bitcoindevkit/bdk

4 years agoMerge commit 'refs/pull/393/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

4 years agoApply typo fixes from @tcharding
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>
4 years agoMerge commit 'refs/pull/388/head' of github.com:bitcoindevkit/bdk
Steve Myers [Tue, 13 Jul 2021 23:10:30 +0000 (16:10 -0700)]
Merge commit 'refs/pull/388/head' of github.com:bitcoindevkit/bdk

4 years agoMerge commit 'refs/pull/375/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

4 years agoMerge commit 'refs/pull/389/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

4 years ago[docs] clarify when the fee could be unknown
Riccardo Casatta [Mon, 12 Jul 2021 08:06:08 +0000 (10:06 +0200)]
[docs] clarify when the fee could be unknown

4 years agoReplace set_single_recipient with drain_to
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.

4 years agoReplace set_single_recipient with drain_to
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.

4 years ago[rpc] Show in the docs that the RPC APIs are feature-gated
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

4 years agoBump version to 0.9.1-dev github/release/0.9.0
Alekos Filini [Thu, 8 Jul 2021 13:20:28 +0000 (15:20 +0200)]
Bump version to 0.9.1-dev

4 years agoBump version to 0.9.0 v0.9.0
Alekos Filini [Thu, 8 Jul 2021 11:37:19 +0000 (13:37 +0200)]
Bump version to 0.9.0

4 years agoUpdate version in `src/lib.rs`
Alekos Filini [Thu, 8 Jul 2021 11:37:05 +0000 (13:37 +0200)]
Update version in `src/lib.rs`

4 years agoUpdate CHANGELOG
Alekos Filini [Thu, 8 Jul 2021 11:36:20 +0000 (13:36 +0200)]
Update CHANGELOG

4 years agoAdd Vbytes trait
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.