Skip to content

Commit be4bb58

Browse files
author
wpaulino
authored
Merge pull request #1980 from TheBlueMatt/2023-01-async-utxo-lookups
2 parents 90bb3f9 + 1f05575 commit be4bb58

File tree

18 files changed

+1191
-201
lines changed

18 files changed

+1191
-201
lines changed

ARCH.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ At a high level, some of the common interfaces fit together as follows:
5151
--------------- / (as EventsProvider) ^ | |
5252
| PeerManager |- \ | | |
5353
--------------- \ | (is-a) | |
54-
| ----------------- \ _---------------- / /
55-
| | chain::Access | \ / | ChainMonitor |---------------
56-
| ----------------- \ / ----------------
54+
| -------------- \ _---------------- / /
55+
| | UtxoLookup | \ / | ChainMonitor |---------------
56+
| -------------- \ / ----------------
5757
| ^ \ / |
5858
(as RoutingMessageHandler) | v v
5959
\ ----------------- --------- -----------------

fuzz/src/full_stack.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ use lightning::ln::peer_handler::{MessageHandler,PeerManager,SocketDescriptor,Ig
4141
use lightning::ln::msgs::{self, DecodeError};
4242
use lightning::ln::script::ShutdownScript;
4343
use lightning::routing::gossip::{P2PGossipSync, NetworkGraph};
44+
use lightning::routing::utxo::UtxoLookup;
4445
use lightning::routing::router::{find_route, InFlightHtlcs, PaymentParameters, Route, RouteHop, RouteParameters, Router};
4546
use lightning::routing::scoring::FixedPenaltyScorer;
4647
use lightning::util::config::UserConfig;
@@ -183,7 +184,7 @@ impl<'a> std::hash::Hash for Peer<'a> {
183184
type ChannelMan<'a> = ChannelManager<
184185
Arc<chainmonitor::ChainMonitor<EnforcingSigner, Arc<dyn chain::Filter>, Arc<TestBroadcaster>, Arc<FuzzEstimator>, Arc<dyn Logger>, Arc<TestPersister>>>,
185186
Arc<TestBroadcaster>, Arc<KeyProvider>, Arc<KeyProvider>, Arc<KeyProvider>, Arc<FuzzEstimator>, &'a FuzzRouter, Arc<dyn Logger>>;
186-
type PeerMan<'a> = PeerManager<Peer<'a>, Arc<ChannelMan<'a>>, Arc<P2PGossipSync<Arc<NetworkGraph<Arc<dyn Logger>>>, Arc<dyn chain::Access>, Arc<dyn Logger>>>, IgnoringMessageHandler, Arc<dyn Logger>, IgnoringMessageHandler, Arc<KeyProvider>>;
187+
type PeerMan<'a> = PeerManager<Peer<'a>, Arc<ChannelMan<'a>>, Arc<P2PGossipSync<Arc<NetworkGraph<Arc<dyn Logger>>>, Arc<dyn UtxoLookup>, Arc<dyn Logger>>>, IgnoringMessageHandler, Arc<dyn Logger>, IgnoringMessageHandler, Arc<KeyProvider>>;
187188

188189
struct MoneyLossDetector<'a> {
189190
manager: Arc<ChannelMan<'a>>,

fuzz/src/router.rs

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ use bitcoin::blockdata::script::Builder;
1111
use bitcoin::blockdata::transaction::TxOut;
1212
use bitcoin::hash_types::BlockHash;
1313

14-
use lightning::chain;
1514
use lightning::chain::transaction::OutPoint;
1615
use lightning::ln::channelmanager::{self, ChannelDetails, ChannelCounterparty};
1716
use lightning::ln::msgs;
1817
use lightning::routing::gossip::{NetworkGraph, RoutingFees};
18+
use lightning::routing::utxo::{UtxoFuture, UtxoLookup, UtxoLookupError, UtxoResult};
1919
use lightning::routing::router::{find_route, PaymentParameters, RouteHint, RouteHintHop, RouteParameters};
2020
use lightning::routing::scoring::FixedPenaltyScorer;
2121
use lightning::util::config::UserConfig;
@@ -81,17 +81,36 @@ impl InputData {
8181
}
8282
}
8383

84-
struct FuzzChainSource {
84+
struct FuzzChainSource<'a, 'b, Out: test_logger::Output> {
8585
input: Arc<InputData>,
86+
net_graph: &'a NetworkGraph<&'b test_logger::TestLogger<Out>>,
8687
}
87-
impl chain::Access for FuzzChainSource {
88-
fn get_utxo(&self, _genesis_hash: &BlockHash, _short_channel_id: u64) -> Result<TxOut, chain::AccessError> {
89-
match self.input.get_slice(2) {
90-
Some(&[0, _]) => Err(chain::AccessError::UnknownChain),
91-
Some(&[1, _]) => Err(chain::AccessError::UnknownTx),
92-
Some(&[_, x]) => Ok(TxOut { value: 0, script_pubkey: Builder::new().push_int(x as i64).into_script().to_v0_p2wsh() }),
93-
None => Err(chain::AccessError::UnknownTx),
94-
_ => unreachable!(),
88+
impl<Out: test_logger::Output> UtxoLookup for FuzzChainSource<'_, '_, Out> {
89+
fn get_utxo(&self, _genesis_hash: &BlockHash, _short_channel_id: u64) -> UtxoResult {
90+
let input_slice = self.input.get_slice(2);
91+
if input_slice.is_none() { return UtxoResult::Sync(Err(UtxoLookupError::UnknownTx)); }
92+
let input_slice = input_slice.unwrap();
93+
let txo_res = TxOut {
94+
value: if input_slice[0] % 2 == 0 { 1_000_000 } else { 1_000 },
95+
script_pubkey: Builder::new().push_int(input_slice[1] as i64).into_script().to_v0_p2wsh(),
96+
};
97+
match input_slice {
98+
&[0, _] => UtxoResult::Sync(Err(UtxoLookupError::UnknownChain)),
99+
&[1, _] => UtxoResult::Sync(Err(UtxoLookupError::UnknownTx)),
100+
&[2, _] => {
101+
let future = UtxoFuture::new();
102+
future.resolve_without_forwarding(self.net_graph, Ok(txo_res));
103+
UtxoResult::Async(future.clone())
104+
},
105+
&[3, _] => {
106+
let future = UtxoFuture::new();
107+
future.resolve_without_forwarding(self.net_graph, Err(UtxoLookupError::UnknownTx));
108+
UtxoResult::Async(future.clone())
109+
},
110+
&[4, _] => {
111+
UtxoResult::Async(UtxoFuture::new()) // the future will never resolve
112+
},
113+
&[..] => UtxoResult::Sync(Ok(txo_res)),
95114
}
96115
}
97116
}
@@ -171,6 +190,10 @@ pub fn do_test<Out: test_logger::Output>(data: &[u8], out: Out) {
171190

172191
let our_pubkey = get_pubkey!();
173192
let net_graph = NetworkGraph::new(genesis_block(Network::Bitcoin).header.block_hash(), &logger);
193+
let chain_source = FuzzChainSource {
194+
input: Arc::clone(&input),
195+
net_graph: &net_graph,
196+
};
174197

175198
let mut node_pks = HashSet::new();
176199
let mut scid = 42;
@@ -191,13 +214,14 @@ pub fn do_test<Out: test_logger::Output>(data: &[u8], out: Out) {
191214
let msg = decode_msg_with_len16!(msgs::UnsignedChannelAnnouncement, 32+8+33*4);
192215
node_pks.insert(get_pubkey_from_node_id!(msg.node_id_1));
193216
node_pks.insert(get_pubkey_from_node_id!(msg.node_id_2));
194-
let _ = net_graph.update_channel_from_unsigned_announcement::<&FuzzChainSource>(&msg, &None);
217+
let _ = net_graph.update_channel_from_unsigned_announcement::
218+
<&FuzzChainSource<'_, '_, Out>>(&msg, &None);
195219
},
196220
2 => {
197221
let msg = decode_msg_with_len16!(msgs::UnsignedChannelAnnouncement, 32+8+33*4);
198222
node_pks.insert(get_pubkey_from_node_id!(msg.node_id_1));
199223
node_pks.insert(get_pubkey_from_node_id!(msg.node_id_2));
200-
let _ = net_graph.update_channel_from_unsigned_announcement(&msg, &Some(&FuzzChainSource { input: Arc::clone(&input) }));
224+
let _ = net_graph.update_channel_from_unsigned_announcement(&msg, &Some(&chain_source));
201225
},
202226
3 => {
203227
let _ = net_graph.update_channel_unsigned(&decode_msg!(msgs::UnsignedChannelUpdate, 72));

lightning-background-processor/src/lib.rs

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ use lightning::ln::channelmanager::ChannelManager;
3030
use lightning::ln::msgs::{ChannelMessageHandler, OnionMessageHandler, RoutingMessageHandler};
3131
use lightning::ln::peer_handler::{CustomMessageHandler, PeerManager, SocketDescriptor};
3232
use lightning::routing::gossip::{NetworkGraph, P2PGossipSync};
33+
use lightning::routing::utxo::UtxoLookup;
3334
use lightning::routing::router::Router;
3435
use lightning::routing::scoring::{Score, WriteableScore};
3536
use lightning::util::events::{Event, EventHandler, EventsProvider};
@@ -116,13 +117,13 @@ const FIRST_NETWORK_PRUNE_TIMER: u64 = 1;
116117

117118
/// Either [`P2PGossipSync`] or [`RapidGossipSync`].
118119
pub enum GossipSync<
119-
P: Deref<Target = P2PGossipSync<G, A, L>>,
120+
P: Deref<Target = P2PGossipSync<G, U, L>>,
120121
R: Deref<Target = RapidGossipSync<G, L>>,
121122
G: Deref<Target = NetworkGraph<L>>,
122-
A: Deref,
123+
U: Deref,
123124
L: Deref,
124125
>
125-
where A::Target: chain::Access, L::Target: Logger {
126+
where U::Target: UtxoLookup, L::Target: Logger {
126127
/// Gossip sync via the lightning peer-to-peer network as defined by BOLT 7.
127128
P2P(P),
128129
/// Rapid gossip sync from a trusted server.
@@ -132,13 +133,13 @@ where A::Target: chain::Access, L::Target: Logger {
132133
}
133134

134135
impl<
135-
P: Deref<Target = P2PGossipSync<G, A, L>>,
136+
P: Deref<Target = P2PGossipSync<G, U, L>>,
136137
R: Deref<Target = RapidGossipSync<G, L>>,
137138
G: Deref<Target = NetworkGraph<L>>,
138-
A: Deref,
139+
U: Deref,
139140
L: Deref,
140-
> GossipSync<P, R, G, A, L>
141-
where A::Target: chain::Access, L::Target: Logger {
141+
> GossipSync<P, R, G, U, L>
142+
where U::Target: UtxoLookup, L::Target: Logger {
142143
fn network_graph(&self) -> Option<&G> {
143144
match self {
144145
GossipSync::P2P(gossip_sync) => Some(gossip_sync.network_graph()),
@@ -163,10 +164,10 @@ where A::Target: chain::Access, L::Target: Logger {
163164
}
164165

165166
/// (C-not exported) as the bindings concretize everything and have constructors for us
166-
impl<P: Deref<Target = P2PGossipSync<G, A, L>>, G: Deref<Target = NetworkGraph<L>>, A: Deref, L: Deref>
167-
GossipSync<P, &RapidGossipSync<G, L>, G, A, L>
167+
impl<P: Deref<Target = P2PGossipSync<G, U, L>>, G: Deref<Target = NetworkGraph<L>>, U: Deref, L: Deref>
168+
GossipSync<P, &RapidGossipSync<G, L>, G, U, L>
168169
where
169-
A::Target: chain::Access,
170+
U::Target: UtxoLookup,
170171
L::Target: Logger,
171172
{
172173
/// Initializes a new [`GossipSync::P2P`] variant.
@@ -178,10 +179,10 @@ where
178179
/// (C-not exported) as the bindings concretize everything and have constructors for us
179180
impl<'a, R: Deref<Target = RapidGossipSync<G, L>>, G: Deref<Target = NetworkGraph<L>>, L: Deref>
180181
GossipSync<
181-
&P2PGossipSync<G, &'a (dyn chain::Access + Send + Sync), L>,
182+
&P2PGossipSync<G, &'a (dyn UtxoLookup + Send + Sync), L>,
182183
R,
183184
G,
184-
&'a (dyn chain::Access + Send + Sync),
185+
&'a (dyn UtxoLookup + Send + Sync),
185186
L,
186187
>
187188
where
@@ -196,10 +197,10 @@ where
196197
/// (C-not exported) as the bindings concretize everything and have constructors for us
197198
impl<'a, L: Deref>
198199
GossipSync<
199-
&P2PGossipSync<&'a NetworkGraph<L>, &'a (dyn chain::Access + Send + Sync), L>,
200+
&P2PGossipSync<&'a NetworkGraph<L>, &'a (dyn UtxoLookup + Send + Sync), L>,
200201
&RapidGossipSync<&'a NetworkGraph<L>, L>,
201202
&'a NetworkGraph<L>,
202-
&'a (dyn chain::Access + Send + Sync),
203+
&'a (dyn UtxoLookup + Send + Sync),
203204
L,
204205
>
205206
where
@@ -397,7 +398,7 @@ macro_rules! define_run_body {
397398
#[cfg(feature = "futures")]
398399
pub async fn process_events_async<
399400
'a,
400-
CA: 'static + Deref + Send + Sync,
401+
UL: 'static + Deref + Send + Sync,
401402
CF: 'static + Deref + Send + Sync,
402403
CW: 'static + Deref + Send + Sync,
403404
T: 'static + Deref + Send + Sync,
@@ -418,7 +419,7 @@ pub async fn process_events_async<
418419
PS: 'static + Deref + Send,
419420
M: 'static + Deref<Target = ChainMonitor<<SP::Target as SignerProvider>::Signer, CF, T, F, L, P>> + Send + Sync,
420421
CM: 'static + Deref<Target = ChannelManager<CW, T, ES, NS, SP, F, R, L>> + Send + Sync,
421-
PGS: 'static + Deref<Target = P2PGossipSync<G, CA, L>> + Send + Sync,
422+
PGS: 'static + Deref<Target = P2PGossipSync<G, UL, L>> + Send + Sync,
422423
RGS: 'static + Deref<Target = RapidGossipSync<G, L>> + Send,
423424
UMH: 'static + Deref + Send + Sync,
424425
PM: 'static + Deref<Target = PeerManager<Descriptor, CMH, RMH, OMH, L, UMH, NS>> + Send + Sync,
@@ -428,11 +429,11 @@ pub async fn process_events_async<
428429
Sleeper: Fn(Duration) -> SleepFuture
429430
>(
430431
persister: PS, event_handler: EventHandler, chain_monitor: M, channel_manager: CM,
431-
gossip_sync: GossipSync<PGS, RGS, G, CA, L>, peer_manager: PM, logger: L, scorer: Option<S>,
432+
gossip_sync: GossipSync<PGS, RGS, G, UL, L>, peer_manager: PM, logger: L, scorer: Option<S>,
432433
sleeper: Sleeper,
433434
) -> Result<(), io::Error>
434435
where
435-
CA::Target: 'static + chain::Access,
436+
UL::Target: 'static + UtxoLookup,
436437
CF::Target: 'static + chain::Filter,
437438
CW::Target: 'static + chain::Watch<<SP::Target as SignerProvider>::Signer>,
438439
T::Target: 'static + BroadcasterInterface,
@@ -531,7 +532,7 @@ impl BackgroundProcessor {
531532
/// [`NetworkGraph::write`]: lightning::routing::gossip::NetworkGraph#impl-Writeable
532533
pub fn start<
533534
'a,
534-
CA: 'static + Deref + Send + Sync,
535+
UL: 'static + Deref + Send + Sync,
535536
CF: 'static + Deref + Send + Sync,
536537
CW: 'static + Deref + Send + Sync,
537538
T: 'static + Deref + Send + Sync,
@@ -551,18 +552,18 @@ impl BackgroundProcessor {
551552
PS: 'static + Deref + Send,
552553
M: 'static + Deref<Target = ChainMonitor<<SP::Target as SignerProvider>::Signer, CF, T, F, L, P>> + Send + Sync,
553554
CM: 'static + Deref<Target = ChannelManager<CW, T, ES, NS, SP, F, R, L>> + Send + Sync,
554-
PGS: 'static + Deref<Target = P2PGossipSync<G, CA, L>> + Send + Sync,
555+
PGS: 'static + Deref<Target = P2PGossipSync<G, UL, L>> + Send + Sync,
555556
RGS: 'static + Deref<Target = RapidGossipSync<G, L>> + Send,
556557
UMH: 'static + Deref + Send + Sync,
557558
PM: 'static + Deref<Target = PeerManager<Descriptor, CMH, RMH, OMH, L, UMH, NS>> + Send + Sync,
558559
S: 'static + Deref<Target = SC> + Send + Sync,
559560
SC: for <'b> WriteableScore<'b>,
560561
>(
561562
persister: PS, event_handler: EH, chain_monitor: M, channel_manager: CM,
562-
gossip_sync: GossipSync<PGS, RGS, G, CA, L>, peer_manager: PM, logger: L, scorer: Option<S>,
563+
gossip_sync: GossipSync<PGS, RGS, G, UL, L>, peer_manager: PM, logger: L, scorer: Option<S>,
563564
) -> Self
564565
where
565-
CA::Target: 'static + chain::Access,
566+
UL::Target: 'static + UtxoLookup,
566567
CF::Target: 'static + chain::Filter,
567568
CW::Target: 'static + chain::Watch<<SP::Target as SignerProvider>::Signer>,
568569
T::Target: 'static + BroadcasterInterface,

lightning-net-tokio/src/lib.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@
3333
//! type FeeEstimator = dyn lightning::chain::chaininterface::FeeEstimator + Send + Sync;
3434
//! type Logger = dyn lightning::util::logger::Logger + Send + Sync;
3535
//! type NodeSigner = dyn lightning::chain::keysinterface::NodeSigner + Send + Sync;
36-
//! type ChainAccess = dyn lightning::chain::Access + Send + Sync;
36+
//! type UtxoLookup = dyn lightning::routing::utxo::UtxoLookup + Send + Sync;
3737
//! type ChainFilter = dyn lightning::chain::Filter + Send + Sync;
3838
//! type DataPersister = dyn lightning::chain::chainmonitor::Persist<lightning::chain::keysinterface::InMemorySigner> + Send + Sync;
3939
//! type ChainMonitor = lightning::chain::chainmonitor::ChainMonitor<lightning::chain::keysinterface::InMemorySigner, Arc<ChainFilter>, Arc<TxBroadcaster>, Arc<FeeEstimator>, Arc<Logger>, Arc<DataPersister>>;
4040
//! type ChannelManager = Arc<lightning::ln::channelmanager::SimpleArcChannelManager<ChainMonitor, TxBroadcaster, FeeEstimator, Logger>>;
41-
//! type PeerManager = Arc<lightning::ln::peer_handler::SimpleArcPeerManager<lightning_net_tokio::SocketDescriptor, ChainMonitor, TxBroadcaster, FeeEstimator, ChainAccess, Logger>>;
41+
//! type PeerManager = Arc<lightning::ln::peer_handler::SimpleArcPeerManager<lightning_net_tokio::SocketDescriptor, ChainMonitor, TxBroadcaster, FeeEstimator, UtxoLookup, Logger>>;
4242
//!
4343
//! // Connect to node with pubkey their_node_id at addr:
4444
//! async fn connect_to_node(peer_manager: PeerManager, chain_monitor: Arc<ChainMonitor>, channel_manager: ChannelManager, their_node_id: PublicKey, addr: SocketAddr) {
@@ -176,8 +176,9 @@ impl Connection {
176176
let (event_waker, event_receiver) = mpsc::channel(1);
177177
tokio::spawn(Self::poll_event_process(peer_manager.clone(), event_receiver));
178178

179-
// 8KB is nice and big but also should never cause any issues with stack overflowing.
180-
let mut buf = [0; 8192];
179+
// 4KiB is nice and big without handling too many messages all at once, giving other peers
180+
// a chance to do some work.
181+
let mut buf = [0; 4096];
181182

182183
let mut our_descriptor = SocketDescriptor::new(us.clone());
183184
// An enum describing why we did/are disconnecting:
@@ -623,6 +624,7 @@ mod tests {
623624
fn handle_query_short_channel_ids(&self, _their_node_id: &PublicKey, _msg: QueryShortChannelIds) -> Result<(), LightningError> { Ok(()) }
624625
fn provided_node_features(&self) -> NodeFeatures { NodeFeatures::empty() }
625626
fn provided_init_features(&self, _their_node_id: &PublicKey) -> InitFeatures { InitFeatures::empty() }
627+
fn processing_queue_high(&self) -> bool { false }
626628
}
627629
impl ChannelMessageHandler for MsgHandler {
628630
fn handle_open_channel(&self, _their_node_id: &PublicKey, _msg: &OpenChannel) {}

lightning/src/chain/mod.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use bitcoin::blockdata::block::{Block, BlockHeader};
1313
use bitcoin::blockdata::constants::genesis_block;
1414
use bitcoin::blockdata::script::Script;
15-
use bitcoin::blockdata::transaction::TxOut;
1615
use bitcoin::hash_types::{BlockHash, Txid};
1716
use bitcoin::network::constants::Network;
1817
use bitcoin::secp256k1::PublicKey;
@@ -60,26 +59,6 @@ impl BestBlock {
6059
pub fn height(&self) -> u32 { self.height }
6160
}
6261

63-
/// An error when accessing the chain via [`Access`].
64-
#[derive(Clone, Debug)]
65-
pub enum AccessError {
66-
/// The requested chain is unknown.
67-
UnknownChain,
68-
69-
/// The requested transaction doesn't exist or hasn't confirmed.
70-
UnknownTx,
71-
}
72-
73-
/// The `Access` trait defines behavior for accessing chain data and state, such as blocks and
74-
/// UTXOs.
75-
pub trait Access {
76-
/// Returns the transaction output of a funding transaction encoded by [`short_channel_id`].
77-
/// Returns an error if `genesis_hash` is for a different chain or if such a transaction output
78-
/// is unknown.
79-
///
80-
/// [`short_channel_id`]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#definition-of-short_channel_id
81-
fn get_utxo(&self, genesis_hash: &BlockHash, short_channel_id: u64) -> Result<TxOut, AccessError>;
82-
}
8362

8463
/// The `Listen` trait is used to notify when blocks have been connected or disconnected from the
8564
/// chain.

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5044,7 +5044,7 @@ where
50445044
), chan),
50455045
// Note that announcement_signatures fails if the channel cannot be announced,
50465046
// so get_channel_update_for_broadcast will never fail by the time we get here.
5047-
update_msg: self.get_channel_update_for_broadcast(chan.get()).unwrap(),
5047+
update_msg: Some(self.get_channel_update_for_broadcast(chan.get()).unwrap()),
50485048
});
50495049
},
50505050
hash_map::Entry::Vacant(_) => return Err(MsgHandleErrInternal::send_err_msg_no_close(format!("Got a message for a channel from the wrong node! No such channel for the passed counterparty_node_id {}", counterparty_node_id), msg.channel_id))
@@ -5973,7 +5973,7 @@ where
59735973
msg: announcement,
59745974
// Note that announcement_signatures fails if the channel cannot be announced,
59755975
// so get_channel_update_for_broadcast will never fail by the time we get here.
5976-
update_msg: self.get_channel_update_for_broadcast(channel).unwrap(),
5976+
update_msg: Some(self.get_channel_update_for_broadcast(channel).unwrap()),
59775977
});
59785978
}
59795979
}
@@ -6289,6 +6289,7 @@ where
62896289
&events::MessageSendEvent::SendChannelAnnouncement { .. } => false,
62906290
&events::MessageSendEvent::BroadcastChannelAnnouncement { .. } => true,
62916291
&events::MessageSendEvent::BroadcastChannelUpdate { .. } => true,
6292+
&events::MessageSendEvent::BroadcastNodeAnnouncement { .. } => true,
62926293
&events::MessageSendEvent::SendChannelUpdate { .. } => false,
62936294
&events::MessageSendEvent::HandleError { .. } => false,
62946295
&events::MessageSendEvent::SendChannelRangeQuery { .. } => false,

0 commit comments

Comments
 (0)