This commit is contained in:
jl777
2017-02-02 20:18:47 +02:00
parent 5afce1bec7
commit 86ea3c770d
2 changed files with 2 additions and 2 deletions

View File

@@ -643,7 +643,7 @@ int32_t komodo_eligiblenotary(int32_t *mids,int32_t *nonzpkeysp,int32_t height)
if ( pindex != 0 )
{
komodo_index2pubkey33(pubkey33,pindex,height-i);
if ( (mids[i]= komodo_minerid(height-i,pubkey33)) >= 0 )
if ( (mids[i]= komodo_minerid(height-i,pubkey33) | (pindex->nHeight<<8)) >= 0 )
(*nonzpkeysp)++;
if ( mids[0] >= 0 && i > 0 && mids[i] == mids[0] )
duplicate++;

View File

@@ -188,7 +188,7 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
if ( height > 180000 && nonzpkeys > 0 && strcmp((char *)NOTARY_PUBKEY.c_str(),"03b7621b44118017a16043f19b30cc8a4cfe068ac4e42417bae16ba460c80f3828") == 0 )
{
for (i=0; i<66; i++)
fprintf(stderr,"%d ",mids[i]);
fprintf(stderr,"%x ",mids[i]);
fprintf(stderr," minerids from ht.%d\n",height);
}
return true;