Skip to content

Commit

Permalink
StartNonce Zero BugFix
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyFFM committed Nov 4, 2018
1 parent 50ed567 commit 42450ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "engraver"
version = "2.0.3"
version = "2.0.4"
license = "GPL-3.0"
authors = ["PoC Consortium <[email protected]>"]
description = """
Expand Down
4 changes: 2 additions & 2 deletions src/hasher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ pub fn create_hasher_task(
cache_size: buffer_size / NONCE_SIZE as size_t,
chunk_offset: j * TASK_SIZE as size_t,
numeric_id: task.numeric_id,
local_startnonce: nonces_hashed + j * TASK_SIZE,
local_startnonce: task.start_nonce + nonces_hashed + j * TASK_SIZE,
local_nonces: TASK_SIZE,
},
simd_ext.clone(),
Expand All @@ -170,7 +170,7 @@ pub fn create_hasher_task(
cache_size: buffer_size / NONCE_SIZE as size_t,
chunk_offset: nonces_to_hash / TASK_SIZE * TASK_SIZE as size_t,
numeric_id: task.numeric_id,
local_startnonce: nonces_hashed + nonces_to_hash / TASK_SIZE * TASK_SIZE,
local_startnonce: task.start_nonce + nonces_hashed + nonces_to_hash / TASK_SIZE * TASK_SIZE,
local_nonces: nonces_to_hash % TASK_SIZE,
},
simd_ext.clone(),
Expand Down

0 comments on commit 42450ad

Please sign in to comment.