From 35917b6dcafefad07c8df2eede005230f0cf1767 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 29 Nov 2016 09:41:20 -0300 Subject: [PATCH] test --- iguana/iguana_notary.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index 5f5721307..4a9d94362 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -247,8 +247,6 @@ TWO_STRINGS(iguana,dpow,symbol,pubkey) return(clonestr("{\"error\":\"cant dPoW same coin again\"}")); } strcpy(dp->symbol,symbol); - src = iguana_coinfind(dp->symbol); - dest = iguana_coinfind(dp->dest); if ( strcmp(dp->symbol,"KMD") == 0 ) { strcpy(dp->dest,"BTC"); @@ -261,6 +259,8 @@ TWO_STRINGS(iguana,dpow,symbol,pubkey) } if ( dp->srcconfirms > DPOW_FIFOSIZE ) dp->srcconfirms = DPOW_FIFOSIZE; + src = iguana_coinfind(dp->symbol); + dest = iguana_coinfind(dp->dest); if ( src == 0 || dest == 0 ) return(clonestr("{\"error\":\"source coin or dest coin not there\"}")); char tmp[67];