This commit is contained in:
jl777
2016-10-31 14:32:48 -03:00
parent 20149fe9e0
commit e2c35fcd47
2 changed files with 2 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ struct pax_transaction
int32_t komodo_issued_opreturn(uint8_t *shortflagp,char *base,uint256 *txids,uint16_t *vouts,uint8_t *opretbuf,int32_t opretlen)
{
int32_t i,n,j,len;
int32_t i,n=0,j,len;
if ( opretbuf[opretlen-5] == '-' )
*shortflagp = 1;
else *shortflagp = 0;
@@ -257,7 +257,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3
{
for (j=0; j<32; j++)
printf("%02x",((uint8_t *)&txids[i])[j]);
printf(" issuedtxid v%d i.%d opretlen.%d\n",vouts[i],i,opretlen);
printf(" issuedtxid v%d i.%d of n.%d opretlen.%d\n",vouts[i],i,n,opretlen);
if ( komodo_gateway_depositremove(txids[i],vouts[i]) == 0 )
printf("error removing deposit\n");
}

View File

@@ -119,7 +119,6 @@ int32_t komodo_notaries(uint8_t pubkeys[64][33],int32_t height)
} else printf("illegal notaryid.%d vs n.%d\n",kp->notaryid,n);
}
pthread_mutex_unlock(&komodo_mutex);
printf("notaries ht.%d got mask.%llx for n.%d\n",height,(long long)mask,n);
if ( mask == ((1LL << n)-1) )
return(n);
printf("error retrieving notaries ht.%d got mask.%llx for n.%d\n",height,(long long)mask,n);