X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fmain.cpp;fp=src%2Fmain.cpp;h=d864adef99629b8f5df7a7e705b392fc14549e65;hp=79f8e921d2cccdae830af7a355c3e2b11b9674af;hb=ec37513297179011b0c13d269a7147aa2df079c1;hpb=20ef4799500378c005dee0c15573b40dab031d37 diff --git a/src/main.cpp b/src/main.cpp index 79f8e92..d864ade 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -14,6 +14,7 @@ #include "kernel.h" #include "random.h" #include "wallet.h" +#include "scrypt.h" #include #include @@ -1236,6 +1237,10 @@ void static InvalidChainFound(CBlockIndex* pindexNew) DateTimeStrFormat("%x %H:%M:%S", pindexBest->GetBlockTime()).c_str()); } +uint256 CBlock::GetHash() const +{ + return scrypt_blockhash((const uint8_t*)&nVersion); +} void CBlock::UpdateTime(const CBlockIndex* pindexPrev) {