Test
This commit is contained in:
@@ -545,6 +545,8 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block)
|
|||||||
printf("%s ht.%d txi.%d signedmask.%llx numvins.%d numvouts.%d <<<<<<<<<<< notarized\n",ASSETCHAINS_SYMBOL,height,i,(long long)signedmask,numvins,numvouts);
|
printf("%s ht.%d txi.%d signedmask.%llx numvins.%d numvouts.%d <<<<<<<<<<< notarized\n",ASSETCHAINS_SYMBOL,height,i,(long long)signedmask,numvins,numvouts);
|
||||||
notarized = 1;
|
notarized = 1;
|
||||||
}
|
}
|
||||||
|
if ( NOTARY_PUBKEY33[0] != 0 )
|
||||||
|
printf("(tx.%d: ",i);
|
||||||
for (j=0; j<numvouts; j++)
|
for (j=0; j<numvouts; j++)
|
||||||
{
|
{
|
||||||
/*if ( i == 0 && j == 0 )
|
/*if ( i == 0 && j == 0 )
|
||||||
@@ -561,6 +563,8 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
|
if ( NOTARY_PUBKEY33[0] != 0 )
|
||||||
|
printf("%.8f ",dstr(block.vtx[i].vout[j].nValue));
|
||||||
len = block.vtx[i].vout[j].scriptPubKey.size();
|
len = block.vtx[i].vout[j].scriptPubKey.size();
|
||||||
if ( len >= sizeof(uint32_t) && len <= sizeof(scriptbuf) )
|
if ( len >= sizeof(uint32_t) && len <= sizeof(scriptbuf) )
|
||||||
{
|
{
|
||||||
@@ -578,6 +582,8 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ( NOTARY_PUBKEY33[0] != 0 )
|
||||||
|
printf(") ");
|
||||||
//printf("%s ht.%d txi.%d signedmask.%llx numvins.%d numvouts.%d notarized.%d special.%d isratification.%d\n",ASSETCHAINS_SYMBOL,height,i,(long long)signedmask,numvins,numvouts,notarized,specialtx,isratification);
|
//printf("%s ht.%d txi.%d signedmask.%llx numvins.%d numvouts.%d notarized.%d special.%d isratification.%d\n",ASSETCHAINS_SYMBOL,height,i,(long long)signedmask,numvins,numvouts,notarized,specialtx,isratification);
|
||||||
if ( notarized != 0 && (notarizedheight != 0 || specialtx != 0) )
|
if ( notarized != 0 && (notarizedheight != 0 || specialtx != 0) )
|
||||||
{
|
{
|
||||||
@@ -618,6 +624,8 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ( NOTARY_PUBKEY33[0] != 0 )
|
||||||
|
printf("ht.%d\n",height);
|
||||||
if ( pindex->nHeight == hwmheight )
|
if ( pindex->nHeight == hwmheight )
|
||||||
komodo_stateupdate(height,0,0,0,zero,0,0,0,0,height,(uint32_t)pindex->nTime,0,0,0,0);
|
komodo_stateupdate(height,0,0,0,zero,0,0,0,0,height,(uint32_t)pindex->nTime,0,0,0,0);
|
||||||
} else fprintf(stderr,"komodo_connectblock: unexpected null pindex\n");
|
} else fprintf(stderr,"komodo_connectblock: unexpected null pindex\n");
|
||||||
|
|||||||
@@ -684,7 +684,7 @@ void static BitcoinMiner(CWallet *pwallet)
|
|||||||
if ( mids[j] == -1 )
|
if ( mids[j] == -1 )
|
||||||
gpucount++;
|
gpucount++;
|
||||||
}
|
}
|
||||||
fprintf(stderr," <- prev minerids from ht.%d notary.%d gpucount.%d %.2f%%\n",pindexPrev->nHeight,notaryid,gpucount,100.*(double)gpucount/j);
|
fprintf(stderr," <- prev minerids from ht.%d notary.%d gpucount.%d %.2f%% t.%u\n",pindexPrev->nHeight,notaryid,gpucount,100.*(double)gpucount/j,(uint32_t)time(NULL));
|
||||||
}
|
}
|
||||||
for (j=0; j<65; j++)
|
for (j=0; j<65; j++)
|
||||||
if ( mids[j] == notaryid )
|
if ( mids[j] == notaryid )
|
||||||
|
|||||||
Reference in New Issue
Block a user