Skip to content

Commit

Permalink
Merge branch 'ImproveCoinbase' into RemoveShortIds
Browse files Browse the repository at this point in the history
  • Loading branch information
Fi3 authored Dec 19, 2024
2 parents e8ec9e7 + 3a5c92d commit e0c7822
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions benches/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ iai="0.1"
mining_sv2 = { path = "../protocols/v2/subprotocols/mining", version = "^2.0.0" }
roles_logic_sv2 = { path = "../protocols/v2/roles-logic-sv2", version = "^3.0.0" }
framing_sv2 = { version = "3.0.0", path = "../protocols/v2/framing-sv2" }

serde = { version = "1.0.89", default-features = false, features = ["derive", "alloc"] }
num-bigint = "0.4.3"
num-traits = "0.2.15"
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 e0c7822

Please sign in to comment.