Browse Source

Test

etomic
jl777 7 years ago
parent
commit
a7adf2d171
  1. 2
      iguana/exchanges/LP_commands.c
  2. 2
      iguana/exchanges/LP_signatures.c
  3. 2
      iguana/exchanges/LP_transaction.c
  4. 3
      iguana/iguana_payments.c

2
iguana/exchanges/LP_commands.c

@ -509,7 +509,7 @@ stop()\n\
if ( bits256_cmp(pub,G.LP_mypub25519) == 0 && time(NULL) > lastnotify+30 ) if ( bits256_cmp(pub,G.LP_mypub25519) == 0 && time(NULL) > lastnotify+30 )
{ {
lastnotify = (uint32_t)time(NULL); lastnotify = (uint32_t)time(NULL);
printf("wantnotify for me!\n"); //printf("wantnotify for me!\n");
LP_notify_pubkeys(ctx,LP_mypubsock); LP_notify_pubkeys(ctx,LP_mypubsock);
} }
retstr = clonestr("{\"result\":\"success\"}"); retstr = clonestr("{\"result\":\"success\"}");

2
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 ) if ( memcmp(pub33,pubsecp,33) != 0 || retval != 0 )
{ {
static uint32_t counter; static uint32_t counter;
if ( counter++ < 100 ) if ( counter++ < 10 )
{ {
if ( pubp != 0 ) if ( pubp != 0 )
pubp->numerrors++; pubp->numerrors++;

2
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; utxos[numunspents] = 0;
total += up->U.value; total += up->U.value;
remains -= 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 ) if ( (interest= LP_komodo_interest(up->U.txid,up->U.value)) > 0 )
{ {

3
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) 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; 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= ((uint32_t)time(NULL) - 60 - txlocktime) / 60) >= 60 )
{ {
if ( minutes > 365 * 24 * 60 ) if ( minutes > 365 * 24 * 60 )

Loading…
Cancel
Save