jl777
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
5 additions and
5 deletions
-
iguana/exchanges/LP_include.h
-
iguana/exchanges/LP_nativeDEX.c
-
iguana/exchanges/LP_remember.c
-
iguana/exchanges/LP_swap.c
|
|
@ -23,9 +23,9 @@ |
|
|
|
|
|
|
|
#define LP_MAJOR_VERSION "0" |
|
|
|
#define LP_MINOR_VERSION "1" |
|
|
|
#define LP_BUILD_NUMBER "15377" |
|
|
|
#define LP_BUILD_NUMBER "15477" |
|
|
|
#define LP_BARTERDEX_VERSION 1 |
|
|
|
#define LP_MAGICBITS 8 |
|
|
|
#define LP_MAGICBITS 1 |
|
|
|
|
|
|
|
#ifdef FROM_JS |
|
|
|
#include <emscripten.h> |
|
|
|
|
|
@ -24,7 +24,7 @@ |
|
|
|
// electrum dynamic trust over 1000
|
|
|
|
// https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki for signing BCH/BTG
|
|
|
|
//
|
|
|
|
// bob latency to respond
|
|
|
|
// delay swap credit back until notarization
|
|
|
|
// bugs, validations:
|
|
|
|
// remove LP_utxo_bestfit from portfolio
|
|
|
|
// portfolio value based on ask?
|
|
|
|
|
|
@ -1126,7 +1126,7 @@ cJSON *basilisk_remember(int64_t *KMDtotals,int64_t *BTCtotals,uint32_t requesti |
|
|
|
} |
|
|
|
LP_txbytes_update("bobrefund",rswap.bobcoin,rswap.txbytes[BASILISK_BOBREFUND],&rswap.txids[BASILISK_BOBREFUND],&rswap.depositspent,&rswap.sentflags[BASILISK_BOBREFUND]); |
|
|
|
} |
|
|
|
else if ( flag == 0 ) |
|
|
|
else if ( 0 && flag == 0 ) |
|
|
|
printf("bobrefund's time %u vs expiration %u\n",(uint32_t)time(NULL),rswap.expiration); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
@ -754,7 +754,7 @@ int32_t LP_swapwait(uint32_t requestid,uint32_t quoteid,int32_t duration,int32_t |
|
|
|
{ |
|
|
|
if ( jstr(retjson,"status") != 0 && strcmp(jstr(retjson,"status"),"finished") == 0 ) |
|
|
|
break; |
|
|
|
else printf("NOT FINISHED.(%s)\n",jprint(retjson,0)); |
|
|
|
//else printf("NOT FINISHED.(%s)\n",jprint(retjson,0));
|
|
|
|
free_json(retjson); |
|
|
|
retjson = 0; |
|
|
|
} |
|
|
|