From b5b0b7e8d8c5ff60a21629acf10a4d090373c18a Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 16 Oct 2017 16:37:44 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 3 +-- iguana/exchanges/LP_include.h | 2 +- iguana/exchanges/LP_nativeDEX.c | 1 + iguana/exchanges/LP_rpc.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 19871c0c4..d74b34501 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -153,10 +153,9 @@ dividends(coin, height, )\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\"}")); diff --git a/iguana/exchanges/LP_include.h b/iguana/exchanges/LP_include.h index b816be396..a292f1be1 100644 --- a/iguana/exchanges/LP_include.h +++ b/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 diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 1c266716e..b59cf9123 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/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 diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index 5da878bbd..083159723 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/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"); }