From: Arik Sosman Date: Tue, 27 Jun 2023 20:26:15 +0000 (-0400) Subject: Update to 0.0.115. X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=160a68310fcfa9f9428de20387470925d08fa6c6;p=rapid-gossip-sync-server Update to 0.0.115. --- diff --git a/Cargo.toml b/Cargo.toml index 729c080..61e2f72 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,9 +5,9 @@ edition = "2018" [dependencies] bitcoin = "0.29" -lightning = { version = "0.0.114" } -lightning-block-sync = { version = "0.0.114", features=["rest-client"] } -lightning-net-tokio = { version = "0.0.114" } +lightning = { version = "0.0.115" } +lightning-block-sync = { version = "0.0.115", features=["rest-client"] } +lightning-net-tokio = { version = "0.0.115" } tokio = { version = "1.14.1", features = ["full"] } tokio-postgres = { version="=0.7.5" } futures = "0.3" diff --git a/src/downloader.rs b/src/downloader.rs index 9256100..ac11ec7 100644 --- a/src/downloader.rs +++ b/src/downloader.rs @@ -1,10 +1,10 @@ use std::sync::{Arc, RwLock}; use bitcoin::secp256k1::PublicKey; +use lightning::events::{MessageSendEvent, MessageSendEventsProvider}; use lightning::ln::features::{InitFeatures, NodeFeatures}; use lightning::ln::msgs::{ChannelAnnouncement, ChannelUpdate, Init, LightningError, NodeAnnouncement, QueryChannelRange, QueryShortChannelIds, ReplyChannelRange, ReplyShortChannelIdsEnd, RoutingMessageHandler}; use lightning::routing::gossip::{NetworkGraph, NodeId, P2PGossipSync}; -use lightning::util::events::{MessageSendEvent, MessageSendEventsProvider}; use tokio::sync::mpsc; use tokio::sync::mpsc::error::TrySendError; @@ -88,7 +88,7 @@ impl MessageSendEventsProvider for GossipRouter { let gossip_evs = self.outbound_gossiper.get_and_clear_pending_msg_events(); for ev in gossip_evs { match ev { - MessageSendEvent::BroadcastChannelAnnouncement { msg, update_msg: None } => { + MessageSendEvent::BroadcastChannelAnnouncement { msg, .. } => { self.new_channel_announcement(msg); }, MessageSendEvent::BroadcastNodeAnnouncement { .. } => {},