|
|
@ -20,6 +20,8 @@ |
|
|
|
|
|
|
|
#include <stdio.h> |
|
|
|
#include "LP_include.h" |
|
|
|
portable_mutex_t LP_peermutex,LP_UTXOmutex,LP_utxomutex,LP_commandmutex,LP_cachemutex,LP_swaplistmutex,LP_forwardmutex,LP_pubkeymutex,LP_networkmutex; |
|
|
|
|
|
|
|
#include "LP_network.c" |
|
|
|
|
|
|
|
struct LP_utxoinfo *LP_utxoinfos[2],*LP_utxoinfos2[2]; |
|
|
@ -31,7 +33,6 @@ char USERPASS[65],USERPASS_WIFSTR[64],USERHOME[512] = { "/root" }; |
|
|
|
|
|
|
|
char *default_LPnodes[] = { "5.9.253.195", "5.9.253.196", "5.9.253.197", "5.9.253.198", "5.9.253.199", "5.9.253.200", "5.9.253.201", "5.9.253.202", "5.9.253.203", "5.9.253.204" }; //
|
|
|
|
|
|
|
|
portable_mutex_t LP_peermutex,LP_UTXOmutex,LP_utxomutex,LP_commandmutex,LP_cachemutex,LP_swaplistmutex,LP_forwardmutex,LP_pubkeymutex; |
|
|
|
int32_t LP_mypubsock = -1; |
|
|
|
int32_t USERPASS_COUNTER,IAMLP = 0; |
|
|
|
double LP_profitratio = 1.; |
|
|
@ -353,6 +354,7 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,double profit |
|
|
|
portable_mutex_init(&LP_commandmutex); |
|
|
|
portable_mutex_init(&LP_swaplistmutex); |
|
|
|
portable_mutex_init(&LP_cachemutex); |
|
|
|
portable_mutex_init(&LP_networkmutex); |
|
|
|
portable_mutex_init(&LP_forwardmutex); |
|
|
|
portable_mutex_init(&LP_pubkeymutex); |
|
|
|
if ( profitmargin == 0. || profitmargin == 0.01 ) |
|
|
|