From 13524c314e4829908036dbc60183e2b93c8914f5 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 28 Nov 2017 18:03:30 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_instantdex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_instantdex.c b/iguana/exchanges/LP_instantdex.c index 54b272813..181078b4f 100644 --- a/iguana/exchanges/LP_instantdex.c +++ b/iguana/exchanges/LP_instantdex.c @@ -307,7 +307,8 @@ void LP_instantdex_proofcheck(char *coinaddr,cJSON *proof,int32_t num) for (i=0; ididinstantdex = 1; - printf("validated instantdex %s.[%d] proof.(%s) credits %.8f\n",othersmartaddr,num,jprint(proof,0),dstr(ap->instantdex_credits)); + if ( ap->instantdex_credits > 0 ) + printf("validated instantdex %s.[%d] proof.(%s) credits %.8f\n",othersmartaddr,num,jprint(proof,0),dstr(ap->instantdex_credits)); } else printf("cant find ap.%p or already did %d %.8f\n",ap,ap!=0?ap->didinstantdex:-1,ap!=0?dstr(ap->instantdex_credits):-1); } }