From b3183e3e195628c641ecfd27b3b6d2d1806166ef Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 26 Nov 2016 20:59:21 -0300 Subject: [PATCH] test --- src/komodo_gateway.h | 14 +++++++------- src/miner.cpp | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 1ee234451..ffbe81bf7 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -192,9 +192,9 @@ int32_t komodo_issued_opreturn(char *base,uint256 *txids,uint16_t *vouts,int64_t incr = 34 + (iskomodo * (2*sizeof(fiatoshis) + 2*sizeof(height) + 20 + 4)); for (i=0; i<4; i++) base[i] = opretbuf[opretlen-4+i]; - for (i=0; itxid,pax->vout,'D')) != 0 ) { - printf("%.8f pax2.%p vs pax.%p\n",dstr(pax2->fiatoshis),pax2,pax); if ( pax2->fiatoshis != 0 ) { pax->komodoshis = pax2->komodoshis; @@ -276,12 +275,12 @@ uint64_t komodo_paxtotal() } } } - if ( strcmp(str,"HRK") == 0 || strcmp("HRK",pax->symbol) == 0 || strcmp("HRK",pax->source) == 0 ) + /*if ( strcmp(str,"HRK") == 0 || strcmp("HRK",pax->symbol) == 0 || strcmp("HRK",pax->source) == 0 ) { for (i=0; i<32; i++) printf("%02x",((uint8_t *)&pax->txid)[i]); printf(" stats.%d type.%c (%s) k.%d %.8f h.%d %.8f I.%.8f X.%.8f\n",pax->didstats,pax->type,str,pax->height,dstr(pax->komodoshis),pax->otherheight,dstr(pax->fiatoshis),dstr(basesp->issued),dstr(basesp->redeemed)); - } + }*/ } } komodo_stateptr(symbol,dest); @@ -480,8 +479,9 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above } if ( matched != num ) { + printf("WOULD REJECT: ht.%d (%c) matched.%d vs num.%d\n",height,opcode,matched,num); // can easily happen depending on order of loading - if ( height > 100000 && opcode == 'X' ) + if ( height > 100000 ) //&& opcode == 'X' ) { printf("REJECT: ht.%d (%c) matched.%d vs num.%d\n",height,opcode,matched,num); return(-1); diff --git a/src/miner.cpp b/src/miner.cpp index e01161ed0..2879561c4 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -637,7 +637,7 @@ void static BitcoinMiner(CWallet *pwallet) solutionTargetChecks.increment(); if ( UintToArith256(pblock->GetHash()) > hashTarget ) { - if ( ASSETCHAINS_SYMBOL[0] != 0 ) + if ( 0 && ASSETCHAINS_SYMBOL[0] != 0 ) fprintf(stderr,"missed target\n"); return false; } @@ -648,8 +648,8 @@ void static BitcoinMiner(CWallet *pwallet) if ( nseconds > 0 ) sleep(nseconds); MilliSleep((rand() % 5000) + 1); - KOMODO_CHOSEN_ONE = 1; } + KOMODO_CHOSEN_ONE = 1; // Found a solution SetThreadPriority(THREAD_PRIORITY_NORMAL); LogPrintf("KomodoMiner:\n");