You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lightning/src/routing/network_graph.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1168,10 +1168,10 @@ impl NetworkGraph {
1168
1168
// disable this check during tests!
1169
1169
let time = SystemTime::now().duration_since(UNIX_EPOCH).expect("Time must be > 1970").as_secs();
1170
1170
if(msg.timestampasu64) < time - STALE_CHANNEL_UPDATE_AGE_LIMIT_SECS{
1171
-
returnErr(LightningError{err:"channel_update is older than two weeks old".to_owned(),action:ErrorAction::IgnoreError});
1171
+
returnErr(LightningError{err:"channel_update is older than two weeks old".to_owned(),action:ErrorAction::IgnoreAndLog(Level::Gossip)});
1172
1172
}
1173
1173
if msg.timestampasu64 > time + 60*60*24{
1174
-
returnErr(LightningError{err:"channel_update has a timestamp more than a day in the future".to_owned(),action:ErrorAction::IgnoreError});
1174
+
returnErr(LightningError{err:"channel_update has a timestamp more than a day in the future".to_owned(),action:ErrorAction::IgnoreAndLog(Level::Gossip)});
0 commit comments