diff --git a/Cargo.toml b/Cargo.toml index 5f93968..9f76c69 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ rust-version = "1.63.0" [dependencies] bdk_chain = { version = "0.19.0" } -kyoto-cbf = { git = "https://github.com/rustaceanrob/kyoto", rev = "408956cf5143b9b18fbcdbf3f35480540af73411" } +kyoto-cbf = { version = "0.2.0" } tracing = { version = "0.1", optional = true } tracing-subscriber = { version = "0.3", optional = true } diff --git a/examples/signet.rs b/examples/signet.rs index 13d2e6e..fb1149d 100644 --- a/examples/signet.rs +++ b/examples/signet.rs @@ -53,7 +53,7 @@ async fn main() -> anyhow::Result<()> { let builder = NodeBuilder::new(Network::Signet); let (node, client) = builder - .add_peers(peers.into_iter().map(|ip| (ip, None).into()).collect()) + .add_peers(peers.into_iter().map(|ip| ip.into()).collect()) .add_scripts(spks_to_watch) .anchor_checkpoint(HeaderCheckpoint::new( 205_000, @@ -62,9 +62,8 @@ async fn main() -> anyhow::Result<()> { )?, )) .num_required_peers(2) - .build_node() - .unwrap(); - let mut client = Client::from_index(chain.tip(), &graph.index, client).unwrap(); + .build_node()?; + let mut client = Client::from_index(chain.tip(), &graph.index, client)?; // Run the node if !node.is_running() {