Browse Source

Test

etomic
jl777 7 years ago
parent
commit
20b296840e
  1. 4
      iguana/exchanges/LP_include.h
  2. 2
      iguana/exchanges/LP_transaction.c

4
iguana/exchanges/LP_include.h

@ -34,8 +34,8 @@
#define INSTANTDEX_BTC "1KRhTPvoxyJmVALwHFXZdeeWFbcJSbkFPu" #define INSTANTDEX_BTC "1KRhTPvoxyJmVALwHFXZdeeWFbcJSbkFPu"
#define INSTANTDEX_BTCD "RThtXup6Zo7LZAi8kRWgjAyi1s4u6U9Cpf" #define INSTANTDEX_BTCD "RThtXup6Zo7LZAi8kRWgjAyi1s4u6U9Cpf"
#define BASILISK_DISABLEWAITTX //#define BASILISK_DISABLEWAITTX
#define BASILISK_DISABLESENDTX //#define BASILISK_DISABLESENDTX
#define LP_PROPAGATION_SLACK 10 // txid ordering is not enforced, so getting extra recent txid #define LP_PROPAGATION_SLACK 10 // txid ordering is not enforced, so getting extra recent txid
#define LP_RESERVETIME 60 #define LP_RESERVETIME 60

2
iguana/exchanges/LP_transaction.c

@ -182,7 +182,7 @@ int32_t LP_numconfirms(struct basilisk_swap *swap,struct basilisk_rawtx *rawtx)
int32_t numconfirms = 100; int32_t numconfirms = 100;
#ifndef BASILISK_DISABLEWAITTX #ifndef BASILISK_DISABLEWAITTX
cJSON *txobj; cJSON *txobj;
if ( (txobj= LP_gettx(symbol,txid)) != 0 ) if ( (txobj= LP_gettx(rawtx->coin->symbol,rawtx->I.signedtxid)) != 0 )
{ {
numconfirms = jint(txobj,"confirmations"); numconfirms = jint(txobj,"confirmations");
free_json(txobj); free_json(txobj);

Loading…
Cancel
Save