From 2d3c928f6a20004da64df5d9fcf5431af6e3b650 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 26 Feb 2017 09:43:26 +0200 Subject: [PATCH] Test --- src/komodo_gateway.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 36dbea914..be7a9892e 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -585,7 +585,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,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 ) + if ( KOMODO_PAX == 0 || komodo_isrealtime(&ht) == 0 ) return(0); memset(baseids,0xff,sizeof(baseids)); memset(values,0,sizeof(values)); @@ -645,7 +645,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above } else { - if ( opcode == 'X' ) + 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++; }