|
|
@ -798,6 +798,12 @@ int32_t LP_reserved_msg(char *base,char *rel,bits256 pubkey,char *msg) |
|
|
|
void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,uint16_t mybusport,char *passphrase,int32_t amclient,char *userhome,cJSON *argjson) |
|
|
|
{ |
|
|
|
char *myipaddr=0; long filesize,n; int32_t timeout,pubsock=-1; struct LP_peerinfo *mypeer=0; char pushaddr[128],subaddr[128],bindaddr[128],*coins_str=0; cJSON *coinsjson=0; void *ctx = bitcoin_ctx(); |
|
|
|
{ |
|
|
|
int32_t sock; |
|
|
|
printf("call nn_socket\n"); |
|
|
|
sock = nn_socket(AF_SP,NN_PAIR); |
|
|
|
printf("nn_socket(PAIR) %d\n",sock); |
|
|
|
} |
|
|
|
LP_showwif = juint(argjson,"wif"); |
|
|
|
if ( passphrase == 0 || passphrase[0] == 0 ) |
|
|
|
{ |
|
|
|