Skip to content

Commit d571520

Browse files
author
Elias Rohrer
committed
Update network_graph 'Trace' to 'Gossip'
1 parent b6a9735 commit d571520

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/routing/network_graph.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ impl NetworkGraph {
848848
Some(node) => {
849849
if let Some(node_info) = node.announcement_info.as_ref() {
850850
if node_info.last_update >= msg.timestamp {
851-
return Err(LightningError{err: "Update older than last processed update".to_owned(), action: ErrorAction::IgnoreAndLog(Level::Trace)});
851+
return Err(LightningError{err: "Update older than last processed update".to_owned(), action: ErrorAction::IgnoreAndLog(Level::Gossip)});
852852
}
853853
}
854854

@@ -977,7 +977,7 @@ impl NetworkGraph {
977977
Self::remove_channel_in_nodes(&mut nodes, &entry.get(), msg.short_channel_id);
978978
*entry.get_mut() = chan_info;
979979
} else {
980-
return Err(LightningError{err: "Already have knowledge of channel".to_owned(), action: ErrorAction::IgnoreAndLog(Level::Trace)})
980+
return Err(LightningError{err: "Already have knowledge of channel".to_owned(), action: ErrorAction::IgnoreAndLog(Level::Gossip)})
981981
}
982982
},
983983
BtreeEntry::Vacant(entry) => {
@@ -1083,7 +1083,7 @@ impl NetworkGraph {
10831083
( $target: expr, $src_node: expr) => {
10841084
if let Some(existing_chan_info) = $target.as_ref() {
10851085
if existing_chan_info.last_update >= msg.timestamp {
1086-
return Err(LightningError{err: "Update older than last processed update".to_owned(), action: ErrorAction::IgnoreAndLog(Level::Trace)});
1086+
return Err(LightningError{err: "Update older than last processed update".to_owned(), action: ErrorAction::IgnoreAndLog(Level::Gossip)});
10871087
}
10881088
chan_was_enabled = existing_chan_info.enabled;
10891089
} else {

0 commit comments

Comments
 (0)