Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
d08c6f0d8d
  1. 4
      iguana/swaps/iguana_BTCswap.c

4
iguana/swaps/iguana_BTCswap.c

@ -552,7 +552,7 @@ cJSON *BTC_waitdeckCfunc(struct supernet_info *myinfo,struct exchange_info *exch
{ {
*serdatap = 0, *serdatalenp = 0; struct bitcoin_swapinfo *swap = ap->info; *serdatap = 0, *serdatalenp = 0; struct bitcoin_swapinfo *swap = ap->info;
strcmp(swap->expectedcmdstr,"BTCdeckC"); strcmp(swap->expectedcmdstr,"BTCdeckC");
if ( instantdex_feetxverify(myinfo,iguana_coinfind("BTC"),swap,ap,argjson) != 0 ) if ( instantdex_feetxverify(myinfo,iguana_coinfind("BTCD"),swap,ap,argjson) != 0 )
return(cJSON_Parse("{\"error\":\"feetx didnt verify\"}")); return(cJSON_Parse("{\"error\":\"feetx didnt verify\"}"));
return(newjson); return(newjson);
} }
@ -562,7 +562,7 @@ cJSON *BTC_waitprivCfunc(struct supernet_info *myinfo,struct exchange_info *exch
struct bitcoin_swapinfo *swap = ap->info; struct bitcoin_swapinfo *swap = ap->info;
strcmp(swap->expectedcmdstr,"BTCprivC"); strcmp(swap->expectedcmdstr,"BTCprivC");
instantdex_privkeyextract(myinfo,swap,*serdatap,*serdatalenp); instantdex_privkeyextract(myinfo,swap,*serdatap,*serdatalenp);
if ( instantdex_feetxverify(myinfo,iguana_coinfind("BTC"),swap,ap,argjson) != 0 ) if ( instantdex_feetxverify(myinfo,iguana_coinfind("BTCD"),swap,ap,argjson) != 0 )
return(cJSON_Parse("{\"error\":\"feetx didnt verify\"}")); return(cJSON_Parse("{\"error\":\"feetx didnt verify\"}"));
*serdatap = 0, *serdatalenp = 0; *serdatap = 0, *serdatalenp = 0;
return(newjson); return(newjson);

Loading…
Cancel
Save