Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
19a74cdf9f
  1. 2
      iguana/SuperNET.c
  2. 2
      iguana/exchanges/bitcoin.c
  3. 4
      iguana/iguana_recv.c
  4. 2
      iguana/main.c

2
iguana/SuperNET.c

@ -712,7 +712,7 @@ char *SuperNET_JSON(struct supernet_info *myinfo,cJSON *json,char *remoteaddr,ui
{
if ( strcmp(agent,"bitcoinrpc") != 0 && newflag == 0 && hexmsg != 0 && SuperNET_hexmsgfind(myinfo,category,subhash,hexmsg,0) < 0 )
{
printf("SuperNET_JSON hexmsgadd\n");
//printf("SuperNET_JSON hexmsgadd\n");
SuperNET_hexmsgadd(myinfo,category,subhash,hexmsg,tai_now(),remoteaddr);
}
if ( (retstr= SuperNET_processJSON(myinfo,json,remoteaddr,port)) != 0 )

2
iguana/exchanges/bitcoin.c

@ -45,7 +45,7 @@ int32_t bitcoin_addr2rmd160(uint8_t *addrtypep,uint8_t rmd160[20],char *coinaddr
memcpy(rmd160,buf+1,20);
if ( (buf[len - 4]&0xff) == hash.bytes[31] && (buf[len - 3]&0xff) == hash.bytes[30] &&(buf[len - 2]&0xff) == hash.bytes[29] &&(buf[len - 1]&0xff) == hash.bytes[28] )
{
printf("coinaddr.(%s) valid checksum addrtype.%02x\n",coinaddr,*addrtypep);
//printf("coinaddr.(%s) valid checksum addrtype.%02x\n",coinaddr,*addrtypep);
return(20);
}
else

4
iguana/iguana_recv.c

@ -1604,8 +1604,8 @@ int32_t iguana_processrecv(struct supernet_info *myinfo,struct iguana_info *coin
}
coin->RTramchain_busy = 0;//(coin->RTgenesis == 0);
flag += iguana_process_msgrequestQ(myinfo,coin);
if ( strcmp("BTCD",coin->symbol) == 0 )
instantdex_update(SuperNET_MYINFO(0));
//if ( strcmp("BTCD",coin->symbol) == 0 )
// instantdex_update(SuperNET_MYINFO(0));
iguana_jsonQ();
if ( hwmheight != coin->blocks.hwmchain.height )

2
iguana/main.c

@ -258,7 +258,7 @@ char *iguana_blockingjsonstr(struct supernet_info *myinfo,char *jsonstr,uint64_t
{
struct iguana_jsonitem *ptr; char *retjsonstr = 0; int32_t len,allocsize; double expiration;
expiration = OS_milliseconds() + maxmillis;
printf("blocking case.(%s) %.0f maxmillis.%d\n",jsonstr,OS_milliseconds(),maxmillis);
//printf("blocking case.(%s) %.0f maxmillis.%d\n",jsonstr,OS_milliseconds(),maxmillis);
len = (int32_t)strlen(jsonstr);
allocsize = sizeof(*ptr) + len + 1;
ptr = mycalloc('J',1,allocsize);

Loading…
Cancel
Save