This commit is contained in:
jl777
2017-02-02 22:03:53 +02:00
parent 3c525df16f
commit 345e545e5b

View File

@@ -627,6 +627,12 @@ void static BitcoinMiner(CWallet *pwallet)
{ {
if ( notaryid < 2 ) if ( notaryid < 2 )
{ {
for (i=1; i<66; i++)
if ( memcmp(pubkeys[i],pubkeys[0],33) == 0 )
break;
if ( i != 65 )
{
printf("VIOLATION at %d\n",i);
for (i=0; i<66; i++) for (i=0; i<66; i++)
{ {
for (j=0; j<33; j++) for (j=0; j<33; j++)
@@ -635,7 +641,8 @@ void static BitcoinMiner(CWallet *pwallet)
} }
for (j=0; j<65; j++) for (j=0; j<65; j++)
fprintf(stderr,"%d ",mids[j]); fprintf(stderr,"%d ",mids[j]);
fprintf(stderr," <- prev minerids from ht.%d notary.%d\n",pindexPrev->nHeight,notaryid); fprintf(stderr," <- prev minerids from ht.%d notary.%d VIOLATION\n",pindexPrev->nHeight,notaryid);
}
} }
for (j=0; j<65; j++) for (j=0; j<65; j++)
if ( mids[j] == notaryid ) if ( mids[j] == notaryid )