aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJannis Froese <[email protected]>2014-05-02 19:55:18 +0200
committerJannis Froese <[email protected]>2014-05-02 19:55:18 +0200
commit96c3be0fa1bce921be93b729a230bbeef5c6ac40 (patch)
tree43a245d5eeb5e8e270114af9ee121bf1f1246f68 /src
parentMerge pull request #493 from rnicoll/1.7-dev-rc (diff)
downloaddiscoin-96c3be0fa1bce921be93b729a230bbeef5c6ac40.tar.xz
discoin-96c3be0fa1bce921be93b729a230bbeef5c6ac40.zip
move GetPoWHash to CBlockHeader class
Diffstat (limited to 'src')
-rw-r--r--src/core.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core.h b/src/core.h
index 85e39efc1..4a082fd6d 100644
--- a/src/core.h
+++ b/src/core.h
@@ -383,6 +383,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
{
@@ -423,13 +430,6 @@ public:
vtx.clear();
vMerkleTree.clear();
}
-
- uint256 GetPoWHash() const
- {
- uint256 thash;
- scrypt_1024_1_1_256(BEGIN(nVersion), BEGIN(thash));
- return thash;
- }
CBlockHeader GetBlockHeader() const
{