projects
/
rapid-gossip-sync-server
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow setting custom gossip seen timestamps.
[rapid-gossip-sync-server]
/
src
/
types.rs
diff --git
a/src/types.rs
b/src/types.rs
index f530bd41a112e41e082079e20fce4f19295c3877..93527a45b837c7368d9bc2842167323ff4c2e397 100644
(file)
--- a/
src/types.rs
+++ b/
src/types.rs
@@
-14,8
+14,9
@@
pub(crate) type GossipPeerManager<L> = Arc<PeerManager<lightning_net_tokio::Sock
#[derive(Debug)]
pub(crate) enum GossipMessage {
#[derive(Debug)]
pub(crate) enum GossipMessage {
- ChannelAnnouncement(ChannelAnnouncement),
- ChannelUpdate(ChannelUpdate),
+ // the second element is an optional override for the seen value
+ ChannelAnnouncement(ChannelAnnouncement, Option<u32>),
+ ChannelUpdate(ChannelUpdate, Option<u32>),
}
#[derive(Clone, Copy)]
}
#[derive(Clone, Copy)]