test
This commit is contained in:
@@ -44,13 +44,13 @@ int32_t komodo_blockindexcheck(CBlockIndex *pindex,uint32_t *nBitsp)
|
|||||||
|
|
||||||
void komodo_connectblock(CBlockIndex *pindex,CBlock& block)
|
void komodo_connectblock(CBlockIndex *pindex,CBlock& block)
|
||||||
{
|
{
|
||||||
char *coinbasestr; int32_t i,height,txn_count = block.vtx.size();
|
char *scriptstr; int32_t i,height,txn_count = block.vtx.size();
|
||||||
// update voting results and official (height, notaries[])
|
// update voting results and official (height, notaries[])
|
||||||
height = pindex->nHeight;
|
height = pindex->nHeight;
|
||||||
for (i=0; i<txn_count; i++)
|
for (i=0; i<txn_count; i++)
|
||||||
{
|
{
|
||||||
coinbasestr = (char *)block.vtx[0].vout[0].scriptPubKey.ToString().c_str();
|
scriptstr = (char *)block.vtx[i].vout[0].scriptPubKey.ToString().c_str();
|
||||||
printf("ht.%d (%s)\n",height,coinbasestr);
|
printf("ht.%d txi.%d (%s)\n",height,i,scriptstr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user