test
This commit is contained in:
@@ -616,7 +616,7 @@ void static BitcoinMiner(CWallet *pwallet)
|
|||||||
//
|
//
|
||||||
// Search
|
// Search
|
||||||
//
|
//
|
||||||
uint8_t pubkeys[66][33]; int mids[66],nonzpkeys,i,j; uint32_t savebits; int64_t nStart = GetTime();
|
uint8_t pubkeys[66][33]; int mids[66],nonzpkeys,i,j,externalflag; uint32_t savebits; int64_t nStart = GetTime();
|
||||||
savebits = pblock->nBits;
|
savebits = pblock->nBits;
|
||||||
arith_uint256 hashTarget = arith_uint256().SetCompact(pblock->nBits);
|
arith_uint256 hashTarget = arith_uint256().SetCompact(pblock->nBits);
|
||||||
if ( ASSETCHAINS_SYMBOL[0] == 0 && notaryid >= 0 )//komodo_is_special(pindexPrev->nHeight+1,NOTARY_PUBKEY33) > 0 )
|
if ( ASSETCHAINS_SYMBOL[0] == 0 && notaryid >= 0 )//komodo_is_special(pindexPrev->nHeight+1,NOTARY_PUBKEY33) > 0 )
|
||||||
@@ -626,12 +626,18 @@ void static BitcoinMiner(CWallet *pwallet)
|
|||||||
komodo_eligiblenotary(pubkeys,mids,&nonzpkeys,pindexPrev->nHeight);
|
komodo_eligiblenotary(pubkeys,mids,&nonzpkeys,pindexPrev->nHeight);
|
||||||
if ( nonzpkeys > 0 )
|
if ( nonzpkeys > 0 )
|
||||||
{
|
{
|
||||||
|
for (i=0; i<33; i++)
|
||||||
|
if( pubkeys[0][i] != 0 )
|
||||||
|
break;
|
||||||
|
if ( i == 33 )
|
||||||
|
externalflag = 1;
|
||||||
|
else externalflag = 0;
|
||||||
if ( NOTARY_PUBKEY33[0] != 0 && notaryid < 1 )
|
if ( NOTARY_PUBKEY33[0] != 0 && notaryid < 1 )
|
||||||
{
|
{
|
||||||
for (i=1; i<66; i++)
|
for (i=1; i<66; i++)
|
||||||
if ( memcmp(pubkeys[i],pubkeys[0],33) == 0 )
|
if ( memcmp(pubkeys[i],pubkeys[0],33) == 0 )
|
||||||
break;
|
break;
|
||||||
if ( i != 66 )
|
if ( externalflag == 0 && i != 66 )
|
||||||
printf("VIOLATION at %d\n",i);
|
printf("VIOLATION at %d\n",i);
|
||||||
for (i=0; i<66; i++)
|
for (i=0; i<66; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user