jl777 8 years ago
parent
commit
bed86aa8d4
  1. 2
      basilisk/basilisk.c
  2. 2
      iguana/main.c
  3. 1
      iguana/tests/getinfoN_7776
  4. 1
      iguana/tests/notaryinit

2
basilisk/basilisk.c

@ -871,7 +871,7 @@ void basilisks_loop(void *arg)
}
//portable_mutex_unlock(&myinfo->allcoins_mutex);
basilisk_ping_send(myinfo,notary);
} else printf("not notary %p %d\n",notary,myinfo->NOTARY.RELAYID);
} // else printf("not notary %p %d\n",notary,myinfo->NOTARY.RELAYID);
if ( myinfo->expiration != 0 )
{
HASH_ITER(hh,myinfo->allcoins,coin,tmpcoin)

2
iguana/main.c

@ -1408,6 +1408,8 @@ ZERO_ARGS(SuperNET,activehandle)
retjson = SuperNET_rosettajson(myinfo,myinfo->persistent_priv,0);
jaddstr(retjson,"result","success");
jaddstr(retjson,"handle",myinfo->handle);
if ( myinfo->ipaddr[0] != 0 )
jaddstr(retjson,"myip",myinfo->ipaddr);
jaddbits256(retjson,"persistent",myinfo->myaddr.persistent);
if ( myinfo->expiration != 0 )
{

1
iguana/tests/getinfoN_7776

@ -0,0 +1 @@
curl --url "http://127.0.0.1:7776" --data "{\"coin\":\"NOTARY\",\"method\":\"getinfo\",\"params\":[]}"

1
iguana/tests/notaryinit

@ -5,3 +5,4 @@ sleep 3
coins/gennotary
curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"SuperNET\",\"method\":\"myipaddr\",\"ipaddr\":\"$myip\"}"
tests/addnotarys_7776
tests/getinfoN_7776

Loading…
Cancel
Save