Merge pull request #498 from leofidus/1.7-GetPoWHash
move GetPoWHash to CBlockHeader class
This commit is contained in:
commit
f6177a2cc8
14
src/core.h
14
src/core.h
|
@ -384,6 +384,13 @@ public:
|
|||
|
||||
uint256 GetHash() const;
|
||||
|
||||
uint256 GetPoWHash() const
|
||||
{
|
||||
uint256 thash;
|
||||
scrypt_1024_1_1_256(BEGIN(nVersion), BEGIN(thash));
|
||||
return thash;
|
||||
}
|
||||
|
||||
int64_t GetBlockTime() const
|
||||
{
|
||||
return (int64_t)nTime;
|
||||
|
@ -424,13 +431,6 @@ public:
|
|||
vMerkleTree.clear();
|
||||
}
|
||||
|
||||
uint256 GetPoWHash() const
|
||||
{
|
||||
uint256 thash;
|
||||
scrypt_1024_1_1_256(BEGIN(nVersion), BEGIN(thash));
|
||||
return thash;
|
||||
}
|
||||
|
||||
CBlockHeader GetBlockHeader() const
|
||||
{
|
||||
CBlockHeader block;
|
||||
|
|
Loading…
Reference in a new issue