Skip to content

Commit

Permalink
Merge pull request #92 from rustaceanrob/wallet-less-1-7
Browse files Browse the repository at this point in the history
Remove `wallet` and `rusqlite` features
  • Loading branch information
rustaceanrob authored Jan 9, 2025
2 parents 302b6b5 + 6a78935 commit 965582b
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 239 deletions.
22 changes: 6 additions & 16 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,14 @@ edition = "2021"
rust-version = "1.63.0"

[dependencies]
bdk_chain = { version = "0.21.1" }
kyoto-cbf = { version = "0.6.0", default-features = false, features = ["dns"] }
bdk_wallet = { version = "1.0.0" }
kyoto-cbf = { version = "0.6.0", default-features = false, features = ["dns", "database"] }
tracing = { version = "0.1", optional = true }
tracing-subscriber = { version = "0.3", optional = true }

[dependencies.bdk_wallet]
version = "1.0.0"
optional = true

[features]
default = ["wallet", "rusqlite", "events", "callbacks", "trace"]
default = ["events", "callbacks", "trace"]
trace = ["tracing", "tracing-subscriber"]
wallet = ["bdk_wallet"]
rusqlite = ["kyoto-cbf/database"]
callbacks = []
events = []

Expand All @@ -39,13 +33,9 @@ tracing-subscriber = { version = "0.3" }


[[example]]
name = "signet"
required-features = ["rusqlite", "callbacks"]

[[example]]
name = "wallet"
required-features = ["wallet", "trace", "rusqlite", "callbacks"]
name = "callbacks"
required-features = ["trace", "callbacks"]

[[example]]
name = "events"
required-features = ["wallet", "rusqlite", "events"]
required-features = ["events"]
File renamed without changes.
115 changes: 0 additions & 115 deletions examples/signet.rs

This file was deleted.

9 changes: 6 additions & 3 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
use std::{path::PathBuf, time::Duration};

use bdk_chain::local_chain::MissingGenesisError;
use bdk_wallet::chain::local_chain::MissingGenesisError;
use bdk_wallet::Wallet;
use kyoto::NodeBuilder;
pub use kyoto::{
Expand Down Expand Up @@ -157,8 +157,11 @@ impl LightClientBuilder {
.add_scripts(wallet.peek_revealed_plus_lookahead().collect())
.build_node()?;
let (sender, receiver) = kyoto_client.split();
let event_receiver =
EventReceiver::from_index(wallet.local_chain().tip(), wallet.spk_index(), receiver)?;
let event_receiver = EventReceiver::from_index(
wallet.local_chain().tip(),
wallet.spk_index().clone(),
receiver,
)?;
Ok(LightClient {
sender,
receiver: event_receiver,
Expand Down
Loading

0 comments on commit 965582b

Please sign in to comment.