diff --git a/Cargo.toml b/Cargo.toml index a9c189f0..df124e05 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bip157" -version = "0.3.0" +version = "0.3.1" authors = ["Rob "] edition = "2021" license = "MIT OR Apache-2.0" diff --git a/src/network/mod.rs b/src/network/mod.rs index d86d449d..47478b46 100644 --- a/src/network/mod.rs +++ b/src/network/mod.rs @@ -31,7 +31,7 @@ pub(crate) mod reader; pub(crate) mod socks; pub const PROTOCOL_VERSION: u32 = 70016; -pub const KYOTO_VERSION: &str = "0.3.0"; +pub const KYOTO_VERSION: &str = "0.3.1"; pub const RUST_BITCOIN_VERSION: &str = "0.32.7"; const THIRTY_MINS: Duration = Duration::from_secs(60 * 30); diff --git a/src/node.rs b/src/node.rs index 3411f5d9..de73d684 100644 --- a/src/node.rs +++ b/src/node.rs @@ -432,6 +432,7 @@ impl Node { let chain = &mut self.chain; match chain.sync_chain(headers) { Ok(reorgs) => { + self.chain.send_chain_update().await; if !reorgs.is_empty() { self.block_queue.remove(&reorgs); }