From 602e0e7614ff9778087efc439c4ed8b8c418b219 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 22 Jan 2017 11:53:40 +0200 Subject: [PATCH] test --- iguana/iguana777.c | 4 ++-- iguana/tests/dexkvsearch | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 14cead2b8..2748d0bb6 100755 --- a/iguana/iguana777.c +++ b/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; diff --git a/iguana/tests/dexkvsearch b/iguana/tests/dexkvsearch index 178a08c42..5c2b68524 100755 --- a/iguana/tests/dexkvsearch +++ b/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\"}"