cherrypick d531cf36 from litecoin-project/litecoin
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user