syntax fix
This commit is contained in:
@@ -41,7 +41,7 @@ using namespace std;
|
|||||||
# error "Bitcoin cannot be compiled without assertions."
|
# error "Bitcoin cannot be compiled without assertions."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern int32_t komodo_blockcheck(void *block,uint32_t *nBitsp);
|
int32_t komodo_blockcheck(void *block,uint32_t *nBitsp);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Global state
|
* Global state
|
||||||
|
|||||||
@@ -307,10 +307,10 @@ bool CBlockTreeDB::LoadBlockIndexGuts()
|
|||||||
pindexNew->nTx = diskindex.nTx;
|
pindexNew->nTx = diskindex.nTx;
|
||||||
|
|
||||||
int32_t retval; uint32_t nBits;
|
int32_t retval; uint32_t nBits;
|
||||||
nBits = pblock->nBits;
|
nBits = pindexNew->nBits;
|
||||||
if ( (retval= komodo_blockcheck((void *)pindexNew,&nBits)) == 0 )
|
if ( (retval= komodo_blockcheck((void *)pindexNew,&nBits)) == 0 )
|
||||||
{
|
{
|
||||||
if (!CheckProofOfWork(pindexNew->GetBlockHash(), pindexNew->nBits, Params().GetConsensus()))
|
if (!CheckProofOfWork(pindexNew->GetBlockHash(), nBits, Params().GetConsensus()))
|
||||||
return error("LoadBlockIndex(): CheckProofOfWork failed: %s", pindexNew->ToString());
|
return error("LoadBlockIndex(): CheckProofOfWork failed: %s", pindexNew->ToString());
|
||||||
}
|
}
|
||||||
else if ( retval < 0 ) // komodo rejects, ie. prior to notarized blockhash
|
else if ( retval < 0 ) // komodo rejects, ie. prior to notarized blockhash
|
||||||
|
|||||||
Reference in New Issue
Block a user