Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve coinbase #1248

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
3f2815b
Update channel factory, coinbase input script handling.
ftrtyfytfjh Nov 13, 2024
d1424c4
Update channel factory, coinbase input script handling.
ftrtyfytfjh Nov 13, 2024
edd2f6a
Update pool to use shorter extranonce
ftrtyfytfjh Nov 14, 2024
20ee367
Update channel factory to support more active jobs in the same moment
ftrtyfytfjh Nov 14, 2024
601f14f
Fix coinbase_prefix, pool channel factory new
ftrtyfytfjh Nov 15, 2024
378eeb5
Fix transalator segwit remover
ftrtyfytfjh Nov 15, 2024
16966b6
Update extranonce size for sv1 devices in translato config
ftrtyfytfjh Nov 16, 2024
c78137d
Update pool channel factory, send new extranonce prefix
ftrtyfytfjh Nov 16, 2024
2e33d45
Upgrade roles-logic-sv2, Fix tests
ftrtyfytfjh Nov 18, 2024
fdf7c15
Fix JDC do not use pool signature in config but the implicit one in t…
ftrtyfytfjh Nov 18, 2024
602160a
Fix translator config file to use shorter extranonce
ftrtyfytfjh Nov 18, 2024
cfd818e
Fix MG tests
ftrtyfytfjh Nov 19, 2024
30d7e08
Fix ChannelFactory add_job
ftrtyfytfjh Dec 16, 2024
f407980
Update channel factory, coinbase input script handling.
ftrtyfytfjh Nov 13, 2024
bd3b79c
Update channel factory, coinbase input script handling.
ftrtyfytfjh Nov 13, 2024
6084ece
Update pool to use shorter extranonce
ftrtyfytfjh Nov 14, 2024
cdf8a00
Update pool channel factory, send new extranonce prefix
ftrtyfytfjh Nov 16, 2024
7b53d72
Upgrade roles-logic-sv2, Fix tests
ftrtyfytfjh Nov 18, 2024
0967c21
Fix JDC do not use pool signature in config but the implicit one in t…
ftrtyfytfjh Nov 18, 2024
63d48eb
add time buffer
Priceless-P Dec 3, 2024
76dab90
Fix integration tests
ftrtyfytfjh Dec 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions benches/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ async-channel = "1.4.0"
v1 = { path="../protocols/v1", package="sv1_api", version = "^1.0.0" }
serde_json = { version = "1.0.64", default-features = false, features = ["alloc"] }
iai="0.1"
mining_sv2 = { path = "../protocols/v2/subprotocols/mining", version = "^1.0.0" }
roles_logic_sv2 = { path = "../protocols/v2/roles-logic-sv2", version = "^1.0.0" }
mining_sv2 = { path = "../protocols/v2/subprotocols/mining", version = "^2.0.0" }
roles_logic_sv2 = { path = "../protocols/v2/roles-logic-sv2", version = "^2.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"
Expand Down
2 changes: 1 addition & 1 deletion protocols/fuzz-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ arbitrary = { version = "1", features = ["derive"] }
rand = "0.8.3"
binary_codec_sv2 = { version = "1.0.0", path = "../v2/binary-sv2/no-serde-sv2/codec"}
codec_sv2 = { version = "1.0.0", path = "../v2/codec-sv2", features = ["noise_sv2"]}
roles_logic_sv2 = { version = "1.0.0", path = "../v2/roles-logic-sv2"}
roles_logic_sv2 = { version = "2.0.0", path = "../v2/roles-logic-sv2"}
affinity = "0.1.1"
threadpool = "1.8.1"
lazy_static = "1.4.0"
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
6 changes: 3 additions & 3 deletions protocols/v2/roles-logic-sv2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "roles_logic_sv2"
version = "1.2.2"
version = "2.0.0"
authors = ["The Stratum V2 Developers"]
edition = "2018"
readme = "README.md"
Expand All @@ -18,7 +18,7 @@ stratum-common = { version="1.0.0", path = "../../../common", features=["bitcoin
serde = { version = "1.0.89", features = ["derive", "alloc"], default-features = false, optional = true}
binary_sv2 = {version = "^1.0.0", path = "../../../protocols/v2/binary-sv2/binary-sv2", default-features = true }
common_messages_sv2 = { path = "../../../protocols/v2/subprotocols/common-messages", version = "^2.0.0" }
mining_sv2 = { path = "../../../protocols/v2/subprotocols/mining", version = "^1.0.0" }
mining_sv2 = { path = "../../../protocols/v2/subprotocols/mining", version = "^2.0.0" }
template_distribution_sv2 = { path = "../../../protocols/v2/subprotocols/template-distribution", version = "^1.0.1" }
job_declaration_sv2 = { path = "../../../protocols/v2/subprotocols/job-declaration", version = "^1.0.0" }
const_sv2 = { version = "^3.0.0", path = "../../../protocols/v2/const-sv2"}
Expand Down Expand Up @@ -46,4 +46,4 @@ prop_test = ["template_distribution_sv2/prop_test"]
disable_nopanic = []

[package.metadata.docs.rs]
all-features = true
all-features = true
Loading
Loading