From a7adf2d171687061ffe49c1670d3e550726fbf97 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 30 Oct 2017 19:40:53 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 2 +- iguana/exchanges/LP_signatures.c | 2 +- iguana/exchanges/LP_transaction.c | 2 +- iguana/iguana_payments.c | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index a9b217906..63b8ce736 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -509,7 +509,7 @@ stop()\n\ if ( bits256_cmp(pub,G.LP_mypub25519) == 0 && time(NULL) > lastnotify+30 ) { lastnotify = (uint32_t)time(NULL); - printf("wantnotify for me!\n"); + //printf("wantnotify for me!\n"); LP_notify_pubkeys(ctx,LP_mypubsock); } retstr = clonestr("{\"result\":\"success\"}"); diff --git a/iguana/exchanges/LP_signatures.c b/iguana/exchanges/LP_signatures.c index 35ade4e60..be24aae78 100644 --- a/iguana/exchanges/LP_signatures.c +++ b/iguana/exchanges/LP_signatures.c @@ -284,7 +284,7 @@ int32_t LP_utxos_sigcheck(uint32_t timestamp,char *sigstr,char *pubsecpstr,bits2 if ( memcmp(pub33,pubsecp,33) != 0 || retval != 0 ) { static uint32_t counter; - if ( counter++ < 100 ) + if ( counter++ < 10 ) { if ( pubp != 0 ) pubp->numerrors++; diff --git a/iguana/exchanges/LP_transaction.c b/iguana/exchanges/LP_transaction.c index 66a24ee0f..7d0f963a3 100644 --- a/iguana/exchanges/LP_transaction.c +++ b/iguana/exchanges/LP_transaction.c @@ -879,7 +879,7 @@ int32_t LP_vins_select(void *ctx,struct iguana_info *coin,int64_t *totalp,int64_ utxos[numunspents] = 0; total += up->U.value; remains -= up->U.value; - //if ( coin->electrum == 0 && strcmp(coin->symbol,"KMD") == 0 ) + if ( up->U.height < 7777777 && strcmp(coin->symbol,"KMD") == 0 ) { if ( (interest= LP_komodo_interest(up->U.txid,up->U.value)) > 0 ) { diff --git a/iguana/iguana_payments.c b/iguana/iguana_payments.c index a5b2876cf..cbc23aa6c 100755 --- a/iguana/iguana_payments.c +++ b/iguana/iguana_payments.c @@ -344,7 +344,8 @@ bits256 iguana_sendrawtransaction(struct supernet_info *myinfo,struct iguana_inf uint64_t _iguana_interest(uint32_t now,int32_t txheight,uint32_t txlocktime,uint64_t value) { int32_t minutes; uint64_t numerator=0,denominator=0,interest=0; uint32_t activation = 1491350400; - + if ( txheight >= 7777777 ) + return(0); if ( (minutes= ((uint32_t)time(NULL) - 60 - txlocktime) / 60) >= 60 ) { if ( minutes > 365 * 24 * 60 )