Skip to content

Commit

Permalink
Merge branch 'ImproveCoinbase' into ImproveCoinbase
Browse files Browse the repository at this point in the history
  • Loading branch information
Fi3 authored Dec 16, 2024
2 parents 66f61f1 + 4881e31 commit 77da92b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion protocols/v2/noise-sv2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion protocols/v2/noise-sv2/src/signature_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 77da92b

Please sign in to comment.