cherrypick d531cf36 from litecoin-project/litecoin

This commit is contained in:
barrystyle
2019-05-29 04:10:37 +08:00
parent be92be5644
commit 532eaf649f
15 changed files with 621 additions and 8 deletions
+8
View File
@@ -9,12 +9,20 @@
#include <tinyformat.h>
#include <util/strencodings.h>
#include <crypto/common.h>
#include <crypto/scrypt.h>
uint256 CBlockHeader::GetHash() const
{
return SerializeHash(*this);
}
uint256 CBlockHeader::GetPoWHash() const
{
uint256 thash;
scrypt_1024_1_1_256(BEGIN(nVersion), BEGIN(thash));
return thash;
}
std::string CBlock::ToString() const
{
std::stringstream s;