From e4bef23952314c08c4640c4bf824b94cf783c0d8 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 30 Jan 2017 08:47:26 +0200 Subject: [PATCH] test --- src/komodo_gateway.h | 4 ++-- src/komodo_pax.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index f6795661e..60fff3c6d 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -573,7 +573,7 @@ int32_t komodo_gateway_deposits(CMutableTransaction *txNew,char *base,int32_t to int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above block is valid pax pricing { - int32_t i,j,n,num,opretlen,offset=1,errs=0,matched=0,kmdheights[64],otherheights[64]; uint256 hash,txids[64]; char symbol[16],base[16]; uint16_t vouts[64]; int8_t baseids[64]; uint8_t *script,opcode,rmd160s[64*20]; uint64_t available,deposited,issued,withdrawn,approved,redeemed; int64_t values[64],srcvalues[64]; struct pax_transaction *pax; + int32_t i,j,n,ht,num,opretlen,offset=1,errs=0,matched=0,kmdheights[64],otherheights[64]; uint256 hash,txids[64]; char symbol[16],base[16]; uint16_t vouts[64]; int8_t baseids[64]; uint8_t *script,opcode,rmd160s[64*20]; uint64_t available,deposited,issued,withdrawn,approved,redeemed; int64_t values[64],srcvalues[64]; struct pax_transaction *pax; if ( KOMODO_PAX == 0 ) return(0); memset(baseids,0xff,sizeof(baseids)); @@ -657,7 +657,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above } if ( height <= chainActive.Tip()->nHeight && matched != num ) { - printf("WOULD REJECT %s: ht.%d (%c) matched.%d vs num.%d\n",symbol,height,opcode,matched,num); + printf("WOULD REJECT %s: ht.%d (%c) matched.%d vs num.%d tip.%d isRT.%d\n",symbol,height,opcode,matched,num,(int32_t)chainActive.Tip()->nHeight,komodo_isrealtime(&ht)); // can easily happen depending on order of loading if ( height > 200000 ) { diff --git a/src/komodo_pax.h b/src/komodo_pax.h index 79f01aefe..3885736e0 100644 --- a/src/komodo_pax.h +++ b/src/komodo_pax.h @@ -600,7 +600,8 @@ uint64_t PAX_fiatdest(uint64_t *seedp,int32_t tokomodo,char *destaddr,uint8_t pu *seedp = 0; if ( (baseid= komodo_baseid(origbase)) < 0 || baseid == MAX_CURRENCIES ) { - printf("[%s] PAX_fiatdest illegal base.(%s)\n",ASSETCHAINS_SYMBOL,origbase); + if ( origbase[0] != 0 ) + printf("[%s] PAX_fiatdest illegal base.(%s)\n",ASSETCHAINS_SYMBOL,origbase); return(0); } for (i=0; i<3; i++)