test
This commit is contained in:
@@ -31,9 +31,9 @@ int32_t komodo_blockindexcheck(CBlockIndex *pindex,uint32_t *nBitsp)
|
|||||||
block.SetNull();
|
block.SetNull();
|
||||||
CAutoFile filein(OpenBlockFile(pindex->GetBlockPos(),true),SER_DISK,CLIENT_VERSION);
|
CAutoFile filein(OpenBlockFile(pindex->GetBlockPos(),true),SER_DISK,CLIENT_VERSION);
|
||||||
if ( filein.IsNull() )
|
if ( filein.IsNull() )
|
||||||
return(-1);
|
return(0);
|
||||||
try { filein >> block; }
|
try { filein >> block; }
|
||||||
catch (const std::exception& e) { return(-1); }
|
catch (const std::exception& e) { return(0); }
|
||||||
height = pindex->nHeight;
|
height = pindex->nHeight;
|
||||||
coinbasestr = (char *)block.vtx[0].vout[0].scriptPubKey.ToString().c_str();
|
coinbasestr = (char *)block.vtx[0].vout[0].scriptPubKey.ToString().c_str();
|
||||||
printf("ht.%d (%s)\n",height,coinbasestr);
|
printf("ht.%d (%s)\n",height,coinbasestr);
|
||||||
|
|||||||
Reference in New Issue
Block a user