From 435cb374b2b95ddc1752f68326fafca3992e2fed Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 4 Mar 2017 23:42:35 +0200 Subject: [PATCH] Test --- basilisk/basilisk_DEX.c | 2 +- iguana/tests/notlp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100755 iguana/tests/notlp diff --git a/basilisk/basilisk_DEX.c b/basilisk/basilisk_DEX.c index 564a30f23..e8036287e 100755 --- a/basilisk/basilisk_DEX.c +++ b/basilisk/basilisk_DEX.c @@ -276,7 +276,7 @@ void basilisk_requests_poll(struct supernet_info *myinfo,bits256 privkey) { static uint32_t lastpoll; char *retstr; uint8_t data[32768]; cJSON *outerarray,*retjson; uint32_t msgid,channel; int32_t datalen,i,n; struct basilisk_request issueR; double hwm = 0.; - if ( time(NULL) < lastpoll+20 || (myinfo->IAMLP == 0 && myinfo->DEXactive == 0) ) + if ( myinfo->IAMNOTARY != 0 || time(NULL) < lastpoll+20 || (myinfo->IAMLP == 0 && myinfo->DEXactive == 0) ) return; lastpoll = (uint32_t)time(NULL); memset(&issueR,0,sizeof(issueR)); diff --git a/iguana/tests/notlp b/iguana/tests/notlp new file mode 100755 index 000000000..b29c9dde7 --- /dev/null +++ b/iguana/tests/notlp @@ -0,0 +1,2 @@ +#!/bin/bash +curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"tradebot\",\"method\":\"notlp\"}"