Portable VerusHash and CPU check
This commit is contained in:
11
src/init.cpp
11
src/init.cpp
@@ -1103,7 +1103,16 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
||||
// set the hash algorithm to use for this chain
|
||||
extern uint32_t ASSETCHAINS_ALGO, ASSETCHAINS_VERUSHASH;
|
||||
if (ASSETCHAINS_ALGO == ASSETCHAINS_VERUSHASH)
|
||||
CBlockHeader::SetVerusHash();
|
||||
{
|
||||
// if we must run portable, do so
|
||||
if (IsCPUVerusOptimized())
|
||||
{
|
||||
CBlockHeader::SetVerusHash();
|
||||
}
|
||||
else{
|
||||
CBlockHeader::SetVerusHashPortable();
|
||||
}
|
||||
}
|
||||
|
||||
// Sanity check
|
||||
if (!InitSanityCheck())
|
||||
|
||||
Reference in New Issue
Block a user