This commit is contained in:
jl777
2016-10-18 13:00:21 -03:00
parent 937401b6d0
commit 72837a519e

View File

@@ -36,9 +36,12 @@ int32_t komodo_blockindexcheck(CBlockIndex *pindex,uint32_t *nBitsp)
return(0);
try { filein >> block; }
catch (const std::exception& e) { return(0); }
height = pindex->nHeight;
coinbasestr = (char *)block.vtx[0].vout[0].scriptPubKey.ToString().c_str();
printf("ht.%d (%s)\n",height,coinbasestr);
if ( block.vtx.size() > 0 )
{
height = pindex->nHeight;
coinbasestr = (char *)block.vtx[0].vout[0].scriptPubKey.ToString().c_str();
printf("ht.%d (%s)\n",height,coinbasestr);
}
// compare against elected notary pubkeys as of height
return(0);
}