mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
correct cumulative difficulty count
This commit is contained in:
parent
8adea0a034
commit
7bc2142590
1 changed files with 2 additions and 2 deletions
|
@ -256,9 +256,9 @@ namespace cryptonote {
|
||||||
|
|
||||||
assert(timestamps.size() == cumulative_difficulties.size() && timestamps.size() <= static_cast<uint64_t>(N+1) );
|
assert(timestamps.size() == cumulative_difficulties.size() && timestamps.size() <= static_cast<uint64_t>(N+1) );
|
||||||
|
|
||||||
if ( height <= DIFFICULTY_HEIGHT ){
|
/*if ( height <= DIFFICULTY_HEIGHT ){
|
||||||
return static_cast<uint64_t>(DIFFICULTY_GUESS);
|
return static_cast<uint64_t>(DIFFICULTY_GUESS);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
for ( int64_t i = 1; i <= N; i++ ) {
|
for ( int64_t i = 1; i <= N; i++ ) {
|
||||||
ST = static_cast<int64_t>(timestamps[i]) - static_cast<int64_t>(timestamps[i-1]);
|
ST = static_cast<int64_t>(timestamps[i]) - static_cast<int64_t>(timestamps[i-1]);
|
||||||
|
|
Loading…
Reference in a new issue