syntax fix

This commit is contained in:
jl777
2016-09-23 10:45:17 -03:00
parent de141d9133
commit e93ff3ca05
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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