Browse Source

Test

etomic
jl777 7 years ago
parent
commit
9f2bd77cd4
  1. 8
      iguana/exchanges/LP_nativeDEX.c
  2. 1
      iguana/exchanges/LP_utxos.c

8
iguana/exchanges/LP_nativeDEX.c

@ -1179,7 +1179,13 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,uint16_t mybu
usleep(1000);
else if ( IAMLP == 0 )
usleep(1000);
printf("mainloop\n");
if ( (rand() % 10000) == 0 )
{
int32_t sock = LP_bindsock;
printf("bindsock reset test\n");
LP_bindsock = -1;
closesocket(sock);
}
}
#endif
}

1
iguana/exchanges/LP_utxos.c

@ -826,6 +826,7 @@ int32_t LP_passphrase_init(char *passphrase,char *gui)
G.LP_sessionid = (uint32_t)time(NULL);
safecopy(G.gui,gui,sizeof(G.gui));
G.USERPASS_COUNTER = counter;
G.initializing = 0;
return(0);
}

Loading…
Cancel
Save