Fix lwmapos crash

This commit is contained in:
jl777
2018-11-24 09:17:34 -11:00
parent 222e4ce1fe
commit 89296c979c
3 changed files with 8 additions and 8 deletions

View File

@@ -1159,11 +1159,11 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
// set the hash algorithm to use for this chain
extern uint32_t ASSETCHAINS_ALGO, ASSETCHAINS_VERUSHASH;
CVerusHash::init();
CVerusHashV2::init();
if (ASSETCHAINS_ALGO == ASSETCHAINS_VERUSHASH)
{
// initialize VerusHash
CVerusHash::init();
CVerusHashV2::init();
CBlockHeader::SetVerusHash();
}