Update discovery.rs

This commit is contained in:
Gav Wood 2016-02-27 15:02:05 +01:00
parent 000d2446b5
commit b2dd6ded1d

View File

@ -349,7 +349,7 @@ impl Discovery {
}
}
fn check_timestamp(&self, timestamp: u64) -> Result<(), NetworkError>{
fn check_timestamp(&self, timestamp: u64) -> Result<(), NetworkError> {
if self.check_timestamps && timestamp < time::get_time().sec as u64{
debug!(target: "discovery", "Expired packet");
return Err(NetworkError::Expired);