move GetPoWHash to CBlockHeader class
This commit is contained in:
parent
89c25c96fc
commit
96c3be0fa1
14
src/core.h
14
src/core.h
|
@ -383,6 +383,13 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
uint256 GetHash() const;
|
uint256 GetHash() const;
|
||||||
|
|
||||||
|
uint256 GetPoWHash() const
|
||||||
|
{
|
||||||
|
uint256 thash;
|
||||||
|
scrypt_1024_1_1_256(BEGIN(nVersion), BEGIN(thash));
|
||||||
|
return thash;
|
||||||
|
}
|
||||||
|
|
||||||
int64_t GetBlockTime() const
|
int64_t GetBlockTime() const
|
||||||
{
|
{
|
||||||
|
@ -423,13 +430,6 @@ public:
|
||||||
vtx.clear();
|
vtx.clear();
|
||||||
vMerkleTree.clear();
|
vMerkleTree.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
uint256 GetPoWHash() const
|
|
||||||
{
|
|
||||||
uint256 thash;
|
|
||||||
scrypt_1024_1_1_256(BEGIN(nVersion), BEGIN(thash));
|
|
||||||
return thash;
|
|
||||||
}
|
|
||||||
|
|
||||||
CBlockHeader GetBlockHeader() const
|
CBlockHeader GetBlockHeader() const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue