Skip to content

Commit

Permalink
correct janushash hashrate
Browse files Browse the repository at this point in the history
  • Loading branch information
CoinFuMasterShifu committed Feb 12, 2024
1 parent be2103a commit 933cd76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project( 'Warthog Miner (Janushash)', ['c','cpp'],
version : '0.2.1',
version : '0.2.2',
default_options : ['warning_level=3', 'cpp_std=c++20'])


Expand Down
2 changes: 1 addition & 1 deletion src/miner/device_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Hashrate janusscore(uint64_t verus, uint64_t sha256t)
return 0.0;
}
double c { double(C_CONSTANT) / double(0xFFFFFFFF) };
return double(sha256t) * (pow(c + double(verus) / double(sha256t), 0.3) - pow(c, 0.3)) / (pow(c + 1, 0.3) - pow(c, 0.3));
return (10.0 / 3.0) * double(sha256t) * (pow(c + double(verus) / double(sha256t), 0.3) - pow(c, 0.3));
}

void MiningCoordinator::print_hashrate()
Expand Down

0 comments on commit 933cd76

Please sign in to comment.