Steve Myers
2325a1fcc2
[docs] Format code in docs with '--config format_code_in_doc_comments=true'
2020-12-16 15:12:51 -08:00
Steve Myers
fb5c70fc64
[docs] Replace all 'allow(missing_docs)' with basic docs
2020-12-16 15:12:49 -08:00
Riccardo Casatta
680aa2aaf4
[docs] fix NetworkMessage::Ping docs link
2020-12-16 12:11:26 +01:00
Alekos Filini
1713d621d4
Rename ScriptType
to KeychainKind
...
This avoids confusion with the "type of script".
2020-12-14 17:14:24 +01:00
Alekos Filini
c83cec3777
Merge commit 'refs/pull/221/head' of github.com:bitcoindevkit/bdk
2020-12-14 11:27:51 +01:00
Steve Myers
f8d3cdca9f
[docs] Add experimental warning to compact_filters and policy modules
2020-12-13 21:04:17 -08:00
Alekos Filini
9bafdfe2d4
[docs] Various fixes to the docs
2020-12-11 11:16:38 +01:00
Alekos Filini
aed2414cad
Merge commit 'refs/pull/214/head' of github.com:bitcoindevkit/bdk
2020-12-07 11:57:32 +01:00
Alekos Filini
592c37897e
Merge commit 'refs/pull/213/head' of github.com:bitcoindevkit/bdk
2020-12-07 11:57:03 +01:00
Alekos Filini
eef59e463d
Merge commit 'refs/pull/210/head' of github.com:bitcoindevkit/bdk
2020-12-07 11:21:21 +01:00
Alekos Filini
8d9365099e
Merge commit 'refs/pull/208/head' of github.com:bitcoindevkit/bdk
2020-12-07 11:09:40 +01:00
Riccardo Casatta
9028d2a16a
[docs] compact_filters/mod.rs
2020-12-05 13:25:57 +01:00
Riccardo Casatta
81519555cf
generalize impl_error! macro so that used for other errors type
2020-12-04 11:23:01 +01:00
Riccardo Casatta
586b874a19
Remove EsploraHeader json in favor of raw hex block header
2020-12-04 11:04:31 +01:00
LLFourn
8dcb75dfa4
Replace UTXO::is_internal with script_type
...
This means less conversion and logic mapping from bool to ScriptType and
back again.
2020-12-04 10:46:25 +11:00
Steve Myers
2e7f98a371
Fix docs
2020-12-02 16:57:59 -08:00
Riccardo Casatta
a89dd85833
allow missing docs on self-explanatory variants
2020-12-02 14:19:46 -08:00
Riccardo Casatta
a766441fe0
missing docs for esplora.rs (also remove useless pubs)
2020-12-02 14:19:41 -08:00
Riccardo Casatta
68db07b2e3
Missing docs for electrum.rs
2020-12-02 14:19:35 -08:00
Alekos Filini
59482f795b
[blockchain] Fix clippy warnings
2020-12-01 14:41:59 +01:00
Riccardo Casatta
6d1d5d5f57
use electurm-client updated
2020-11-30 13:25:23 +01:00
Riccardo Casatta
c9079a7292
Allow to set concurrency in Esplora config and optionally pass it in repl
2020-11-18 11:55:20 +01:00
Riccardo Casatta
4c59809f8e
Make esplora call in parallel
2020-11-18 11:08:19 +01:00
Riccardo Casatta
ae16c8b602
fix typo
2020-11-18 09:27:01 +01:00
Riccardo Casatta
b79fa27aa4
Remove unused varaint HeaderParseFail
2020-11-17 18:54:34 +01:00
Riccardo Casatta
42480ea37b
Bring less data around
2020-11-17 16:38:19 +01:00
Riccardo Casatta
02c0ad2fca
eagerly unwrap height option, save one collect
2020-11-17 16:37:10 +01:00
Riccardo Casatta
16fde66c6a
use flatten instead of unwrap_or
2020-11-17 15:24:26 +01:00
Riccardo Casatta
2844ddec63
avoid a max() call by checking minus or equal
2020-11-17 15:20:33 +01:00
Riccardo Casatta
7a58d3dd7a
Use filter_map instead of filter and map
2020-11-17 15:16:18 +01:00
Riccardo Casatta
4d1617f4e0
use proper type for EsploraHeader, make conversion to BlockHeader infallible
2020-11-17 15:08:04 +01:00
Riccardo Casatta
2f39a19b01
Use our Instant struct to be compatible with wasm
2020-11-17 14:25:27 +01:00
Riccardo Casatta
c5dba115a0
[sync] Improve sync
...
Make every request in batch, to save round trip times
Fetch timestamp of blockheader to populate timestamp field in transaction
Remove listunspent requests because we can compute it from our history
2020-11-17 09:39:43 +01:00
Steve Myers
4f7355ec82
[ci] Fix all-keys and cli-utils tests
2020-10-28 21:34:04 -07:00
Alekos Filini
0caad5f3d9
[blockchain] Fix receiving a coinbase using Electrum/Esplora
...
Closes #107
2020-10-13 11:56:59 +02:00
Steve Myers
aea9abff8a
[ci] Fix clippy warnings, enable clippy checks
2020-10-10 10:31:07 -07:00
Alekos Filini
5b0fd3bba0
[blockchain] Document AnyBlockchain
and ConfigurableBlockchain
2020-09-15 15:38:59 +02:00
Alekos Filini
e5cc8d9529
[blockchain] Add an AnyBlockchain
enum to allow switching at runtime
...
This is related to #43
2020-09-15 12:03:07 +02:00
Alekos Filini
5eee18bed2
[blockchain] Add a trait to create Blockchain
s from a configuration
...
This is the first set of changes for #42
2020-09-15 12:03:04 +02:00
Alekos Filini
d7ee38cc52
Rename the library to bdk
2020-09-14 15:13:43 -07:00
Alekos Filini
efdd11762c
[blockchain] Simplify the architecture of blockchain traits
...
Instead of having two traits, `Blockchain` and `OnlineBlockchain` that need
to be implemented by the user, only the relevant one (`OnlineBlockchain`, here
renamed to `Blockchain`) will need to be implemented, since we provide a
blanket implementation for the "marker" trait (previously `Blockchain`, here
renamed to `BlockchainMarker`).
Users of the library will probably never need to implement `BlockchainMarker`
by itself, since we expose the `OfflineBlockchain` type that already does
that and should be good for any "offline" wallet. Still, it's exposed since
they might need to import it to define types with generics.
2020-09-10 10:45:07 +02:00
LLFourn
6a2d0db674
Remove assumed "/api" prefix from esplora
...
It is not necessary that esplora is hosted with a /api prefix
2020-09-05 14:00:50 +10:00
Alekos Filini
7b58a4ad6f
Fix the last_derivation_index
calculation
...
It should be set to `0` if not transactions are found during sync.
Closes #44
2020-09-04 21:53:31 +02:00
Alekos Filini
43cb0331bf
Rename the crate to just "magical"
2020-09-04 17:01:33 +02:00
Alekos Filini
7065c1fed6
Write more docs
2020-09-04 11:44:49 +02:00
Alekos Filini
6b9c363937
Write the docs for blockchain::*
2020-09-03 11:36:07 +02:00
Alekos Filini
c0867a6adc
General cleanup for the docs
2020-08-31 15:04:27 +02:00
Alekos Filini
d61e974dbe
Add the license to every file
2020-08-31 11:48:25 +02:00
Alekos Filini
895c6b0808
[blockchain] impl OnlineBlockchain for types wrapped in Arc
2020-08-30 20:38:14 +02:00
Alekos Filini
5777431135
Use miniscript::DescriptorPublicKey
...
This allows us to remove all our custom "ExtendedDescriptor" implementation since that is
now built directly in miniscript.
2020-08-30 20:36:19 +02:00