Browse Source

Test

etomic
jl777 8 years ago
parent
commit
20043c8071
  1. 4
      iguana/exchanges/LP_socket.c
  2. 2
      iguana/exchanges/mm.c

4
iguana/exchanges/LP_socket.c

@ -390,8 +390,8 @@ void electrum_test()
decode_hex(hash.bytes,sizeof(hash),"0000000000000000005087f8845f9ed0282559017e3c6344106de15e46c07acd");
if ( (retjson= electrum_getheader(3)) != 0 )
printf("electrum_getheader %s\n",jprint(retjson,1));
if ( (retjson= electrum_getchunk(3)) != 0 )
printf("electrum_getchunk %s\n",jprint(retjson,1));
//if ( (retjson= electrum_getchunk(3)) != 0 )
// printf("electrum_getchunk %s\n",jprint(retjson,1));
decode_hex(hash.bytes,sizeof(hash),"b967a7d55889fe11e993430921574ec6379bc8ce712a652c3fcb66c6be6e925c");
if ( (retjson= electrum_getmerkle(hash,403000)) != 0 )
printf("electrum_getmerkle %s\n",jprint(retjson,1));

2
iguana/exchanges/mm.c

@ -817,7 +817,7 @@ int main(int argc, const char * argv[])
exit(-1);
} else printf("(%s) launched.(%s)\n",argv[1],passphrase);
incr = 100.;
LP_dedicatedloop(LP_recvfunc,&LP_sendstr,"88.198.241.196",50001);
LP_dedicatedloop(LP_recvfunc,&LP_sendstr,"46.4.125.2",50001);//88.198.241.196",50001);
while ( 1 )
sleep(1);
profitmargin = jdouble(retjson,"profitmargin");

Loading…
Cancel
Save