Working proof of stake with new algorithm

This commit is contained in:
Michael Toutonghi
2018-05-15 00:54:18 -07:00
parent 3789cb0885
commit 1fae37f6bf
10 changed files with 123 additions and 157 deletions

View File

@@ -31,7 +31,6 @@ class CVerusHash
result = buf2;
curPos = 0;
std::fill(buf1, buf1 + sizeof(buf1), 0);
std::fill(buf2, buf2 + sizeof(buf2), 0);
}
void Finalize(unsigned char hash[32])
@@ -42,7 +41,7 @@ class CVerusHash
haraka512(hash, curBuf);
}
else
std::memcpy(hash, result, 32);
std::memcpy(hash, curBuf, 32);
}
private: