From e2ab5cb17bfd117dd22a3df103529d2fb6ef4263 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 16 Mar 2017 09:34:13 +0200 Subject: [PATCH] Test --- src/komodo_gateway.h | 12 ++++++------ src/miner.cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 016309a86..d7127bdb6 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -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 ) { - //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 ) 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 ) { - /*printf("skip checkdeposit.%s not RT %llx\n",CURRENCIES[baseids[i-1]],(long long)sp->RTmask); - matched++; - continue;*/ + printf("checkdeposit.%s not RT %llx\n",CURRENCIES[baseids[i-1]],(long long)sp->RTmask); + //matched++; + //continue; } 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 { - 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])); 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); return(-1); } - } + } else printf("accept paxdeposit\n"); } else { diff --git a/src/miner.cpp b/src/miner.cpp index 74e72aad6..429d4b6d1 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -620,7 +620,7 @@ void static BitcoinMiner(CWallet *pwallet) //static uint32_t counter; //if ( counter++ < 100 ) fprintf(stderr,"created illegal block, retry\n"); - //continue; + continue; } unique_ptr pblocktemplate(ptr); if (!pblocktemplate.get())