Browse Source

Merge pull request #951 from jl777/jl777

Jl777
patch-5
jl777 7 years ago
committed by GitHub
parent
commit
781f2baa8c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      iguana/exchanges/LP_ordermatch.c
  2. 2
      iguana/exchanges/LP_privkey.c

2
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();

2
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);

Loading…
Cancel
Save