|
|
@ -73,15 +73,11 @@ char *issue_LP_clientgetutxos(char *destip,uint16_t destport,char *coin,int32_t |
|
|
|
//return(retstr);
|
|
|
|
} |
|
|
|
|
|
|
|
change to nanomsg write only, enforce fee, comms api |
|
|
|
char *issue_LP_notify(char *destip,uint16_t destport,char *ipaddr,uint16_t port,double profitmargin,int32_t numpeers,int32_t numutxos) |
|
|
|
{ |
|
|
|
char url[512],*retstr; |
|
|
|
if ( (retstr= LP_isitme(destip,destport)) != 0 ) |
|
|
|
{ |
|
|
|
free(retstr); |
|
|
|
return(0); |
|
|
|
} |
|
|
|
return(retstr); |
|
|
|
sprintf(url,"http://%s:%u/api/stats/notify?ipaddr=%s&port=%u&profit=%.6f&numpeers=%d&numutxos=%d",destip,destport,ipaddr,port,profitmargin,numpeers,numutxos); |
|
|
|
return(LP_issue_curl("notify",destip,destport,url)); |
|
|
|
//return(issue_curlt(url,LP_HTTP_TIMEOUT));
|
|
|
@ -91,10 +87,7 @@ char *issue_LP_notifyutxo(char *destip,uint16_t destport,struct LP_utxoinfo *utx |
|
|
|
{ |
|
|
|
char url[4096],str[65],str2[65],str3[65],*retstr; struct _LP_utxoinfo u; uint64_t val,val2; |
|
|
|
if ( (retstr= LP_isitme(destip,destport)) != 0 ) |
|
|
|
{ |
|
|
|
free(retstr); |
|
|
|
return(0); |
|
|
|
} |
|
|
|
return(retstr); |
|
|
|
if ( utxo->iambob == 0 ) |
|
|
|
{ |
|
|
|
printf("issue_LP_notifyutxo trying to send Alice %s/v%d\n",bits256_str(str,utxo->payment.txid),utxo->payment.vout); |
|
|
|