From cc1fe6060de61bea6a6b211070752df5246de67f Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 16 Aug 2018 09:12:46 -1100 Subject: [PATCH 1/2] Allow single numerical digit wif --- iguana/exchanges/LP_privkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_privkey.c b/iguana/exchanges/LP_privkey.c index 716bfc30b..8bfcdc67e 100644 --- a/iguana/exchanges/LP_privkey.c +++ b/iguana/exchanges/LP_privkey.c @@ -287,7 +287,7 @@ int32_t LP_wifstr_valid(char *symbol,char *wifstr) } if ( n == 0 || A == 0 || a == 0 ) return(0); - if ( A > 5*a || a > 5*A || a > n*20 || A > n*20 ) // unlikely it is a real wif + if ( A > 5*a || a > 5*A || a > n*26 || A > n*26 ) // unlikely it is a real wif { printf("reject wif %s due to n.%d a.%d A.%d (%d %d %d %d)\n",wifstr,n,a,A,A > 5*a,a < 5*A,a > n*20,A > n*20); return(0); From 7adfb4eb5bc42acd6d90ca1b8be3c0c930687299 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 16 Aug 2018 21:24:01 -1100 Subject: [PATCH 2/2] Suppress -9999 for gtc orders --- iguana/exchanges/LP_ordermatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index 1a0dc223c..f34b5e9f7 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -705,7 +705,7 @@ int32_t LP_alice_eligible(uint32_t quotetime) { if ( Alice_expiration != 0 && quotetime > Alice_expiration ) { - if ( LP_Alicequery.uuidstr[0] != 0 ) + if ( LP_Alicequery.uuidstr[0] != 0 && LP_Alicequery.gtc == 0 ) LP_failedmsg(LP_Alicequery.R.requestid,LP_Alicequery.R.quoteid,-9999,LP_Alicequery.uuidstr); printf("time expired for Alice_request\n"); LP_alicequery_clear();