diff --git a/src/komodo.h b/src/komodo.h index 0a00258d4..153779c92 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -88,7 +88,7 @@ int32_t komodo_blockindexcheck(CBlockIndex *pindex,uint32_t *nBitsp) return(0); } -void komodo_connectblock(CBlockIndex *pindex,const CBlock& block) +void komodo_connectblock(CBlockIndex *pindex,CBlock& block) { char *scriptstr; int32_t i,j,height,txn_count,len,flag = 0; // update voting results and official (height, notaries[]) diff --git a/src/main.cpp b/src/main.cpp index 481ee75e9..24d29b45e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2221,7 +2221,7 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin int64_t nTime4 = GetTimeMicros(); nTimeCallbacks += nTime4 - nTime3; LogPrint("bench", " - Callbacks: %.2fms [%.2fs]\n", 0.001 * (nTime4 - nTime3), nTimeCallbacks * 0.000001); - komodo_connectblock(pindex,block); + komodo_connectblock(pindex,*(CBlock *)&block); return true; }