summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authoralpaylan2021-04-12 19:59:52 +0300
committeralpaylan2021-04-12 19:59:52 +0300
commit87e690420cb61efc172e82a29c38b479fc734247 (patch)
tree56da2a59de903d43b4b32d361e4a89a8d2c51669 /examples
parent364ee376ea5c6fa0de8bb40ee1e7304d05d4bf64 (diff)
downloadgradecoin-87e690420cb61efc172e82a29c38b479fc734247.tar.gz
gradecoin-87e690420cb61efc172e82a29c38b479fc734247.tar.bz2
gradecoin-87e690420cb61efc172e82a29c38b479fc734247.zip
six rightmost zeros for mining
Diffstat (limited to 'examples')
-rw-r--r--examples/mining.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/mining.rs b/examples/mining.rs
index 56e33f3..c95c214 100644
--- a/examples/mining.rs
+++ b/examples/mining.rs
@@ -23,9 +23,9 @@ pub fn main() {
23 23
24 let result = Blake2s::digest(&j); 24 let result = Blake2s::digest(&j);
25 25
26 let first_five = result[31] as i32 + result[30] as i32 + (result[29] << 4) as i32; 26 let first_six = result[31] as i32 + result[30] as i32 + result[29] as i32;
27 27
28 if first_five == 0 { 28 if first_six == 0 {
29 println!("{} - {:x}\n{:?}", nonce, result, b); 29 println!("{} - {:x}\n{:?}", nonce, result, b);
30 break; 30 break;
31 } 31 }