#[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)]
impl TestLogger {
pub fn new() -> TestLogger {
- Self::with_id("".to_owned())
+ let id = crate::tests::db_test_schema();
+ Self::with_id(id)
}
pub fn with_id(id: String) -> TestLogger {
TestLogger {