Browse Source

Test

etomic
jl777 7 years ago
parent
commit
b5b0b7e8d8
  1. 3
      iguana/exchanges/LP_commands.c
  2. 2
      iguana/exchanges/LP_include.h
  3. 1
      iguana/exchanges/LP_nativeDEX.c
  4. 2
      iguana/exchanges/LP_rpc.c

3
iguana/exchanges/LP_commands.c

@ -153,10 +153,9 @@ dividends(coin, height, <args>)\n\
jdelete(argjson,"userpass");
if ( strcmp(method,"sendmessage") == 0 )
{
//*
if ( jobj(argjson,"method2") == 0 )
{
printf("broadcast message\n");
//LP_signature_add(argjson,jstr(argjson,"message"),jbits256(argjson,"pubkey"));
LP_broadcast_message(LP_mypubsock,base!=0?base:jstr(argjson,"coin"),rel,jbits256(argjson,"pubkey"),jprint(argjson,0));
}
return(clonestr("{\"result\":\"success\"}"));

2
iguana/exchanges/LP_include.h

@ -35,7 +35,7 @@
#define MIN_PSOCK_PORT 10000
#define LP_MEMPOOL_TIMEINCR 10
#define LP_GETINFO_INCR 30
#define LP_ORDERBOOK_DURATION 3600
#define LP_ORDERBOOK_DURATION 120
#define LP_HTTP_TIMEOUT 2 // 1 is too small due to edge cases of time(NULL)
#define LP_MAXPEER_ERRORS 3

1
iguana/exchanges/LP_nativeDEX.c

@ -19,6 +19,7 @@
// marketmaker
//
// sign critical api calls
// SPV height errors, autodetect and fix
// stats
// dPoW security -> 2: KMD notarized, 3: BTC notarized
// add interest to KMD withdraw

2
iguana/exchanges/LP_rpc.c

@ -486,7 +486,7 @@ int32_t LP_listunspent_issue(char *symbol,char *coinaddr,int32_t fullflag)
if ( (destport= LP_randpeer(destip)) > 0 )
{
retstr = issue_LP_listunspent(destip,destport,symbol,coinaddr);
printf("issue %s %s %s -> (%s)\n",coin->symbol,coinaddr,destip,retstr);
//printf("issue %s %s %s -> (%s)\n",coin->symbol,coinaddr,destip,retstr);
retjson = cJSON_Parse(retstr);
} else printf("LP_listunspent_issue couldnt get a random peer?\n");
}

Loading…
Cancel
Save