From b3c9275a7f04ef5ed389169abe064bedc875fc3e Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 11 May 2018 20:04:15 +0300 Subject: [PATCH] Test --- iguana/iguana_notary.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index 9e8395b66..ca14f4bcd 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -388,7 +388,11 @@ THREE_STRINGS_AND_DOUBLE(iguana,dpow,symbol,dest,pubkey,freq) json = cJSON_Parse(retstr); if ( (ismine= jobj(json,"ismine")) != 0 && is_cJSON_True(ismine) != 0 ) srcvalid = 1; - else srcvalid = 0; + else + { + srcvalid = 0; + printf("src validation error %s %s %s\n",src->symbol,srcaddr,retstr); + } free(retstr); retstr = 0; } @@ -398,7 +402,11 @@ THREE_STRINGS_AND_DOUBLE(iguana,dpow,symbol,dest,pubkey,freq) json = cJSON_Parse(retstr); if ( (ismine= jobj(json,"ismine")) != 0 && is_cJSON_True(ismine) != 0 ) destvalid = 1; - else destvalid = 0; + else + { + destvalid = 0; + printf("dest validation error %s %s %s\n",src->symbol,srcaddr,retstr); + } free(retstr); retstr = 0; }