Browse Source

Test

etomic
jl777 7 years ago
parent
commit
8c327cae83
  1. 4
      iguana/exchanges/LP_commands.c
  2. 2
      iguana/exchanges/LP_rpc.c
  3. 4
      iguana/exchanges/LP_stats.c

4
iguana/exchanges/LP_commands.c

@ -603,7 +603,7 @@ instantdex_claim()\n\
} }
argjson = reqjson; argjson = reqjson;
} }
else if ( strcmp(method,"getdPoW") == 0 ) if ( strcmp(method,"getdPoW") == 0 )
retstr = clonestr("{\"result\":\"success\"}"); retstr = clonestr("{\"result\":\"success\"}");
} }
else else
@ -618,7 +618,7 @@ instantdex_claim()\n\
LP_dPoW_broadcast(ptr); LP_dPoW_broadcast(ptr);
retstr = clonestr("{\"result\":\"success\"}"); retstr = clonestr("{\"result\":\"success\"}");
} }
} }
// received response // received response
if ( strcmp(method,"swapstatus") == 0 ) if ( strcmp(method,"swapstatus") == 0 )
return(LP_swapstatus_recv(argjson)); return(LP_swapstatus_recv(argjson));

2
iguana/exchanges/LP_rpc.c

@ -1031,7 +1031,7 @@ int32_t LP_txhasnotarization(bits256 *notarizedhashp,struct iguana_info *coin,bi
{ {
len >>= 1; len >>= 1;
decode_hex(script,len,hexstr); decode_hex(script,len,hexstr);
iguana_rwbignum(0,&script[4],32,(uint8_t *)notarizedhashp); iguana_rwbignum(0,&script[2],32,(uint8_t *)notarizedhashp);
} }
} }
free_json(txobj); free_json(txobj);

4
iguana/exchanges/LP_stats.c

@ -77,7 +77,7 @@ char *LP_dPoW_recv(cJSON *argjson)
return(clonestr("{\"result\":\"success\"}")); return(clonestr("{\"result\":\"success\"}"));
} }
int32_t LP_dPoWheight(struct iguana_info *coin) // get dPoW protected height /*int32_t LP_dPoWheight(struct iguana_info *coin) // get dPoW protected height
{ {
int32_t notarized,oldnotarized; int32_t notarized,oldnotarized;
if ( coin->electrum == 0 ) if ( coin->electrum == 0 )
@ -94,7 +94,7 @@ int32_t LP_dPoWheight(struct iguana_info *coin) // get dPoW protected height
else if ( coin->notarized == 0 ) else if ( coin->notarized == 0 )
LP_dPoW_request(coin); LP_dPoW_request(coin);
return(coin->notarized); return(coin->notarized);
} }*/
void LP_tradecommand_log(cJSON *argjson) void LP_tradecommand_log(cJSON *argjson)
{ {

Loading…
Cancel
Save