Test
This commit is contained in:
@@ -857,7 +857,7 @@ int32_t komodo_is_special(int32_t height,uint8_t pubkey33[33],uint32_t timestamp
|
|||||||
komodo_chosennotary(&nid,height-i,pubkey33,timestamp);
|
komodo_chosennotary(&nid,height-i,pubkey33,timestamp);
|
||||||
if ( nid == notaryid )
|
if ( nid == notaryid )
|
||||||
{
|
{
|
||||||
if ( (0) && notaryid > 0 )
|
//if ( (0) && notaryid > 0 )
|
||||||
fprintf(stderr,"ht.%d notaryid.%d already mined -i.%d nid.%d\n",height,notaryid,i,nid);
|
fprintf(stderr,"ht.%d notaryid.%d already mined -i.%d nid.%d\n",height,notaryid,i,nid);
|
||||||
if ( height > 225000 )
|
if ( height > 225000 )
|
||||||
return(-1);
|
return(-1);
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
|
|||||||
if ( height == 0 )
|
if ( height == 0 )
|
||||||
{
|
{
|
||||||
height = komodo_currentheight() + 1;
|
height = komodo_currentheight() + 1;
|
||||||
fprintf(stderr,"set height to %d\n",height);
|
//fprintf(stderr,"set height to %d\n",height);
|
||||||
}
|
}
|
||||||
if ( height > 34000 && ASSETCHAINS_SYMBOL[0] == 0 ) // 0 -> non-special notary
|
if ( height > 34000 && ASSETCHAINS_SYMBOL[0] == 0 ) // 0 -> non-special notary
|
||||||
{
|
{
|
||||||
@@ -158,7 +158,7 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
|
|||||||
}
|
}
|
||||||
flag = komodo_eligiblenotary(pubkeys,mids,&nonzpkeys,height);
|
flag = komodo_eligiblenotary(pubkeys,mids,&nonzpkeys,height);
|
||||||
special2 = komodo_is_special(height,pubkey33,timestamp);
|
special2 = komodo_is_special(height,pubkey33,timestamp);
|
||||||
fprintf(stderr,"ht.%d notaryid.%d special.%d flag.%d special2.%d\n",height,notaryid,special,flag,special2);
|
//fprintf(stderr,"ht.%d notaryid.%d special.%d flag.%d special2.%d\n",height,notaryid,special,flag,special2);
|
||||||
if ( notaryid >= 0 )
|
if ( notaryid >= 0 )
|
||||||
{
|
{
|
||||||
if ( height > 10000 && height < 80000 && (special != 0 || special2 > 0) )
|
if ( height > 10000 && height < 80000 && (special != 0 || special2 > 0) )
|
||||||
@@ -174,7 +174,7 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
|
|||||||
}
|
}
|
||||||
if ( flag != 0 || special2 > 0 )
|
if ( flag != 0 || special2 > 0 )
|
||||||
{
|
{
|
||||||
fprintf(stderr,"EASY MINING ht.%d\n",height);
|
//fprintf(stderr,"EASY MINING ht.%d\n",height);
|
||||||
bnTarget.SetCompact(KOMODO_MINDIFF_NBITS,&fNegative,&fOverflow);
|
bnTarget.SetCompact(KOMODO_MINDIFF_NBITS,&fNegative,&fOverflow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user