Skip to content

Commit 42450ad

Browse files
committed
StartNonce Zero BugFix
1 parent 50ed567 commit 42450ad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "engraver"
3-
version = "2.0.3"
3+
version = "2.0.4"
44
license = "GPL-3.0"
55
authors = ["PoC Consortium <bots@cryptoguru.org>"]
66
description = """

src/hasher.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ pub fn create_hasher_task(
150150
cache_size: buffer_size / NONCE_SIZE as size_t,
151151
chunk_offset: j * TASK_SIZE as size_t,
152152
numeric_id: task.numeric_id,
153-
local_startnonce: nonces_hashed + j * TASK_SIZE,
153+
local_startnonce: task.start_nonce + nonces_hashed + j * TASK_SIZE,
154154
local_nonces: TASK_SIZE,
155155
},
156156
simd_ext.clone(),
@@ -170,7 +170,7 @@ pub fn create_hasher_task(
170170
cache_size: buffer_size / NONCE_SIZE as size_t,
171171
chunk_offset: nonces_to_hash / TASK_SIZE * TASK_SIZE as size_t,
172172
numeric_id: task.numeric_id,
173-
local_startnonce: nonces_hashed + nonces_to_hash / TASK_SIZE * TASK_SIZE,
173+
local_startnonce: task.start_nonce + nonces_hashed + nonces_to_hash / TASK_SIZE * TASK_SIZE,
174174
local_nonces: nonces_to_hash % TASK_SIZE,
175175
},
176176
simd_ext.clone(),

0 commit comments

Comments
 (0)