Compare commits
6 Commits
v1.0.0-bet
...
frost
Author | SHA1 | Date | |
---|---|---|---|
|
785371e0a1 | ||
|
18626c66ac | ||
|
8bf8c7d080 | ||
|
a8efeaa0fb | ||
|
82141a8201 | ||
|
28d75304e1 |
1
.github/workflows/cont_integration.yml
vendored
1
.github/workflows/cont_integration.yml
vendored
@ -36,6 +36,7 @@ jobs:
|
|||||||
cargo update -p proptest --precise "1.2.0"
|
cargo update -p proptest --precise "1.2.0"
|
||||||
cargo update -p url --precise "2.5.0"
|
cargo update -p url --precise "2.5.0"
|
||||||
cargo update -p cc --precise "1.0.105"
|
cargo update -p cc --precise "1.0.105"
|
||||||
|
cargo update -p tokio --precise "1.38.1"
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build ${{ matrix.features }}
|
run: cargo build ${{ matrix.features }}
|
||||||
- name: Test
|
- name: Test
|
||||||
|
@ -74,6 +74,7 @@ cargo update -p home --precise "0.5.5"
|
|||||||
cargo update -p proptest --precise "1.2.0"
|
cargo update -p proptest --precise "1.2.0"
|
||||||
cargo update -p url --precise "2.5.0"
|
cargo update -p url --precise "2.5.0"
|
||||||
cargo update -p cc --precise "1.0.105"
|
cargo update -p cc --precise "1.0.105"
|
||||||
|
cargo update -p tokio --precise "1.38.1"
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
@ -84,7 +84,7 @@ impl<I: Clone + Ord + core::fmt::Debug> SpkTxOutIndex<I> {
|
|||||||
/// Typically, this is used in two situations:
|
/// Typically, this is used in two situations:
|
||||||
///
|
///
|
||||||
/// 1. After loading transaction data from the disk, you may scan over all the txouts to restore all
|
/// 1. After loading transaction data from the disk, you may scan over all the txouts to restore all
|
||||||
/// your txouts.
|
/// your txouts.
|
||||||
/// 2. When getting new data from the chain, you usually scan it before incorporating it into your chain state.
|
/// 2. When getting new data from the chain, you usually scan it before incorporating it into your chain state.
|
||||||
pub fn scan(&mut self, tx: &Transaction) -> BTreeSet<I> {
|
pub fn scan(&mut self, tx: &Transaction) -> BTreeSet<I> {
|
||||||
let mut scanned_indices = BTreeSet::new();
|
let mut scanned_indices = BTreeSet::new();
|
||||||
|
@ -107,7 +107,7 @@ impl<T> Persisted<T> {
|
|||||||
Ok(T::load(db, params)?.map(|inner| Self { inner }))
|
Ok(T::load(db, params)?.map(|inner| Self { inner }))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Contruct a persisted `T` from an async `Db`.
|
/// Construct a persisted `T` from an async `Db`.
|
||||||
pub async fn load_async<Db>(
|
pub async fn load_async<Db>(
|
||||||
db: &mut Db,
|
db: &mut Db,
|
||||||
params: T::LoadParams,
|
params: T::LoadParams,
|
||||||
|
@ -93,7 +93,6 @@ impl ChangeSet {
|
|||||||
Self::init_wallet_sqlite_tables(db_tx)?;
|
Self::init_wallet_sqlite_tables(db_tx)?;
|
||||||
use chain::rusqlite::OptionalExtension;
|
use chain::rusqlite::OptionalExtension;
|
||||||
use chain::Impl;
|
use chain::Impl;
|
||||||
use miniscript::{Descriptor, DescriptorPublicKey};
|
|
||||||
|
|
||||||
let mut changeset = Self::default();
|
let mut changeset = Self::default();
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ impl LoadParams {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Checks that `descriptor` of `keychain` matches this, and extracts private keys (if
|
/// Checks that `descriptor` of `keychain` matches this, and extracts private keys (if
|
||||||
/// avaliable).
|
/// available).
|
||||||
pub fn descriptors<D>(mut self, descriptor: D, change_descriptor: D) -> Self
|
pub fn descriptors<D>(mut self, descriptor: D, change_descriptor: D) -> Self
|
||||||
where
|
where
|
||||||
D: IntoWalletDescriptor + 'static,
|
D: IntoWalletDescriptor + 'static,
|
||||||
|
@ -154,7 +154,7 @@ impl<E: fmt::Debug + fmt::Display> std::error::Error for LoadWithPersistError<E>
|
|||||||
pub enum CreateWithPersistError<E> {
|
pub enum CreateWithPersistError<E> {
|
||||||
/// Error from persistence.
|
/// Error from persistence.
|
||||||
Persist(E),
|
Persist(E),
|
||||||
/// Occurs when the loaded changeset cannot contruct [`Wallet`].
|
/// Occurs when the loaded changeset cannot construct [`Wallet`].
|
||||||
Descriptor(DescriptorError),
|
Descriptor(DescriptorError),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -575,7 +575,7 @@ impl<'a, Cs> TxBuilder<'a, Cs> {
|
|||||||
///
|
///
|
||||||
/// This will be used to:
|
/// This will be used to:
|
||||||
/// 1. Set the nLockTime for preventing fee sniping.
|
/// 1. Set the nLockTime for preventing fee sniping.
|
||||||
/// **Note**: This will be ignored if you manually specify a nlocktime using [`TxBuilder::nlocktime`].
|
/// **Note**: This will be ignored if you manually specify a nlocktime using [`TxBuilder::nlocktime`].
|
||||||
/// 2. Decide whether coinbase outputs are mature or not. If the coinbase outputs are not
|
/// 2. Decide whether coinbase outputs are mature or not. If the coinbase outputs are not
|
||||||
/// mature at `current_height`, we ignore them in the coin selection.
|
/// mature at `current_height`, we ignore them in the coin selection.
|
||||||
/// If you want to create a transaction that spends immature coinbase inputs, manually
|
/// If you want to create a transaction that spends immature coinbase inputs, manually
|
||||||
|
Loading…
x
Reference in New Issue
Block a user