Browse Source

-print and activate mpnet

pass-iguana-arg
jl777 7 years ago
parent
commit
60035955de
  1. 9
      iguana/exchanges/LP_mpnet.c
  2. 2
      iguana/exchanges/LP_nativeDEX.c

9
iguana/exchanges/LP_mpnet.c

@ -149,7 +149,7 @@ cJSON *LP_mpnet_parse(struct iguana_info *coin,bits256 txid)
len = (hlen >> 1);
decode_hex(linebuf,len,hexstr);
buf = linebuf;
printf("hexstr.(%s)\n",hexstr);
//printf("hexstr.(%s)\n",hexstr);
if ( *buf == 0x6a )
{
buf++, len--;
@ -158,7 +158,6 @@ cJSON *LP_mpnet_parse(struct iguana_info *coin,bits256 txid)
buf++, len--;
n = buf[0] + buf[1]*256;
buf += 2, len -= 2;
printf("n.%d len.%d\n",n,len);
if ( n == len )
{
if ( (decodestr= MMJSON_decode(buf,len)) != 0 )
@ -166,11 +165,11 @@ cJSON *LP_mpnet_parse(struct iguana_info *coin,bits256 txid)
}
}
}
if ( argjson == 0 )
if ( 0 && argjson == 0 )
printf("unhandled case.(%s)\n",hexstr);
}
}
if ( argjson == 0 )
if ( 0 && argjson == 0 )
printf("unhandled tx.(%s)\n",jprint(txobj,0));
free_json(txobj);
}
@ -187,7 +186,7 @@ void LP_mpnet_process(void *ctx,char *myipaddr,int32_t pubsock,struct iguana_inf
cJSON *argjson; char str[65];
if ( LP_mpnet_find(txid) < 0 )
{
printf("unique %s\n",bits256_str(str,txid));
//printf("unique %s\n",bits256_str(str,txid));
if ( (argjson= LP_mpnet_parse(coin,txid)) != 0 )
{
printf("MPNET.(%s)\n",jprint(argjson,0));

2
iguana/exchanges/LP_nativeDEX.c

@ -1649,7 +1649,7 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,uint16_t mybu
int32_t nonz,didremote=0;
LP_statslog_parse();
bitcoind_RPC_inittime = 0;
if ( strcmp(G.USERPASS,"9894cc3a6f94afa8871d3633dce61a4444d48d670bacb229fb607064654ae81f") == 0 )
//if ( strcmp(G.USERPASS,"9894cc3a6f94afa8871d3633dce61a4444d48d670bacb229fb607064654ae81f") == 0 )
{
G.mpnet = 1;
printf("MPNET active\n");

Loading…
Cancel
Save