test
This commit is contained in:
@@ -78,8 +78,9 @@ int32_t komodo_blockindexcheck(CBlockIndex *pindex,uint32_t *nBitsp)
|
|||||||
break;
|
break;
|
||||||
if ( strncmp(Notaries[i][1],coinbasestr,66) == 0 )
|
if ( strncmp(Notaries[i][1],coinbasestr,66) == 0 )
|
||||||
{
|
{
|
||||||
printf("Notary.[%d] %s ht.%d (%s)\n",i,Notaries[i][0],height,coinbasestr);
|
//printf("Notary.[%d] %s ht.%d (%s)\n",i,Notaries[i][0],height,coinbasestr);
|
||||||
break;
|
//*nBitsp = KOMODO_MINDIFF_NBITS;
|
||||||
|
return(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -95,6 +96,8 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block)
|
|||||||
{
|
{
|
||||||
height = pindex->nHeight;
|
height = pindex->nHeight;
|
||||||
txn_count = block.vtx.size();
|
txn_count = block.vtx.size();
|
||||||
|
if ( txn_count == 0 )
|
||||||
|
printf("no transactions for ht.%d\n",height);
|
||||||
for (i=0; i<txn_count; i++)
|
for (i=0; i<txn_count; i++)
|
||||||
{
|
{
|
||||||
scriptstr = (char *)block.vtx[i].vout[0].scriptPubKey.ToString().c_str();
|
scriptstr = (char *)block.vtx[i].vout[0].scriptPubKey.ToString().c_str();
|
||||||
|
|||||||
Reference in New Issue
Block a user