diff --git a/protocols/v2/noise-sv2/Cargo.toml b/protocols/v2/noise-sv2/Cargo.toml index 2bcb8ba6d0..05ca9b3067 100644 --- a/protocols/v2/noise-sv2/Cargo.toml +++ b/protocols/v2/noise-sv2/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "noise_sv2" -version = "1.2.0" +version = "1.2.1" authors = ["The Stratum V2 Developers"] edition = "2018" readme = "README.md" diff --git a/protocols/v2/noise-sv2/src/signature_message.rs b/protocols/v2/noise-sv2/src/signature_message.rs index c82e4bd087..954e22b514 100644 --- a/protocols/v2/noise-sv2/src/signature_message.rs +++ b/protocols/v2/noise-sv2/src/signature_message.rs @@ -76,7 +76,7 @@ impl SignatureNoiseMessage { .duration_since(SystemTime::UNIX_EPOCH) .unwrap() .as_secs() as u32; - if self.valid_from <= now && self.not_valid_after >= now { + if (self.valid_from - 10) <= now && (self.not_valid_after + 10) >= now { let secp = Secp256k1::verification_only(); let (m, s) = self.split(); // m = SHA-256(version || valid_from || not_valid_after || server_static_key)