Browse Source

test

etomic
jl777 8 years ago
parent
commit
602e0e7614
  1. 4
      iguana/iguana777.c
  2. 1
      iguana/tests/dexkvsearch

4
iguana/iguana777.c

@ -901,7 +901,7 @@ void iguana_coinloop(void *arg)
if ( coin->notarychain >= 0 && myinfo->IAMNOTARY != 0 )
init_alladdresses(myinfo,coin);
}
if ( coin->FULLNODE < 0 || coin->notarychain >= 0 )
if ( coin->FULLNODE < 0 || (coin->notarychain >= 0 && coin->FULLNODE == 0) )
{
continue;
}
@ -1209,7 +1209,7 @@ int32_t iguana_launchcoin(struct supernet_info *myinfo,char *symbol,cJSON *json,
coins = mycalloc('A',1+1,sizeof(*coins));
if ( (coin= iguana_setcoin(symbol,coins,maxpeers,maxrecvcache,services,initialheight,maphash,minconfirms,maxrequests,maxbundles,json,virtcoin)) != 0 )
{
if ( iguana_isnotarychain(coin->symbol) < 0 )
if ( iguana_isnotarychain(coin->symbol) < 0 || coin->FULLNODE != 0 )
{
coins[0] = (void *)((long)1);
coins[1] = coin;

1
iguana/tests/dexkvsearch

@ -1,3 +1,4 @@
#!/bin/bash
#curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"kvsearch\",\"key\":\"foo\",\"symbol\":\"KMD\"}"
curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"kvsearch\",\"key\":\"test\",\"symbol\":\"KV\"}"
curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"kvsearch\",\"key\":\"777\",\"symbol\":\"KV\"}"

Loading…
Cancel
Save