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
@@ -1170,10 +1170,10 @@ impl NetworkGraph {
1170
1170
// disable this check during tests!
1171
1171
let time = SystemTime::now().duration_since(UNIX_EPOCH).expect("Time must be > 1970").as_secs();
1172
1172
if(msg.timestampasu64) < time - STALE_CHANNEL_UPDATE_AGE_LIMIT_SECS{
1173
-
returnErr(LightningError{err:"channel_update is older than two weeks old".to_owned(),action:ErrorAction::IgnoreError});
1173
+
returnErr(LightningError{err:"channel_update is older than two weeks old".to_owned(),action:ErrorAction::IgnoreAndLog(Level::Gossip)});
1174
1174
}
1175
1175
if msg.timestampasu64 > time + 60*60*24{
1176
-
returnErr(LightningError{err:"channel_update has a timestamp more than a day in the future".to_owned(),action:ErrorAction::IgnoreError});
1176
+
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