This commit is contained in:
jl777
2017-03-16 09:34:13 +02:00
parent 7255df320a
commit e2ab5cb17b
2 changed files with 7 additions and 7 deletions

View File

@@ -661,7 +661,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
{ {
if ( n == 2 && block.vtx[0].vout[1].nValue > COIN/10 ) if ( n == 2 && block.vtx[0].vout[1].nValue > COIN/10 )
{ {
//fprintf(stderr,">>>>>>>> <<<<<<<<<< ht.%d illegal nonz output %.8f n.%d\n",height,dstr(block.vtx[0].vout[1].nValue),n); fprintf(stderr,">>>>>>>> <<<<<<<<<< ht.%d illegal nonz output %.8f n.%d\n",height,dstr(block.vtx[0].vout[1].nValue),n);
if ( height >= 235300 ) if ( height >= 235300 )
return(-1); return(-1);
} }
@@ -701,9 +701,9 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
{ {
if ( (sp= komodo_stateptrget(CURRENCIES[baseids[i-1]])) != 0 && (sp->RTmask & (1LL << baseids[i-1])) == 0 ) if ( (sp= komodo_stateptrget(CURRENCIES[baseids[i-1]])) != 0 && (sp->RTmask & (1LL << baseids[i-1])) == 0 )
{ {
/*printf("skip checkdeposit.%s not RT %llx\n",CURRENCIES[baseids[i-1]],(long long)sp->RTmask); printf("checkdeposit.%s not RT %llx\n",CURRENCIES[baseids[i-1]],(long long)sp->RTmask);
matched++; //matched++;
continue;*/ //continue;
} }
if ( (pax= komodo_paxfinds(txids[i-1],vouts[i-1])) != 0 ) // finds... make sure right one if ( (pax= komodo_paxfinds(txids[i-1],vouts[i-1])) != 0 ) // finds... make sure right one
{ {
@@ -724,7 +724,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
} }
else else
{ {
if ( opcode == 'X' && strcmp(ASSETCHAINS_SYMBOL,CURRENCIES[baseids[i]]) == 0 ) //if ( opcode == 'X' && strcmp(ASSETCHAINS_SYMBOL,CURRENCIES[baseids[i]]) == 0 )
printf("check deposit validates %s %.8f -> %.8f\n",CURRENCIES[baseids[i]],dstr(srcvalues[i]),dstr(values[i])); printf("check deposit validates %s %.8f -> %.8f\n",CURRENCIES[baseids[i]],dstr(srcvalues[i]),dstr(values[i]));
matched++; matched++;
} }
@@ -756,7 +756,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
printf("REJECT: ht.%d (%c) matched.%d vs num.%d\n",height,opcode,matched,num); printf("REJECT: ht.%d (%c) matched.%d vs num.%d\n",height,opcode,matched,num);
return(-1); return(-1);
} }
} } else printf("accept paxdeposit\n");
} }
else else
{ {

View File

@@ -620,7 +620,7 @@ void static BitcoinMiner(CWallet *pwallet)
//static uint32_t counter; //static uint32_t counter;
//if ( counter++ < 100 ) //if ( counter++ < 100 )
fprintf(stderr,"created illegal block, retry\n"); fprintf(stderr,"created illegal block, retry\n");
//continue; continue;
} }
unique_ptr<CBlockTemplate> pblocktemplate(ptr); unique_ptr<CBlockTemplate> pblocktemplate(ptr);
if (!pblocktemplate.get()) if (!pblocktemplate.get())