jl777 7 years ago
parent
commit
cf26246774
  1. 4
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_remember.c

4
iguana/exchanges/LP_nativeDEX.c

@ -19,13 +19,13 @@
// marketmaker // marketmaker
// //
// process stats.log local file -> map of realtime activity! // process stats.log local file -> map of realtime activity!
// sign price
// select oldest utxo first
// handles <-> pubkeys, deal with offline pubkeys, reputations, bonds etc. // handles <-> pubkeys, deal with offline pubkeys, reputations, bonds etc.
// //
// verify portfolio, pricearray, interest to KMD withdraw, reliable networking // verify portfolio, pricearray, interest to KMD withdraw, reliable networking
// dPoW security -> 4: KMD notarized, 5: BTC notarized, after next notary elections // dPoW security -> 4: KMD notarized, 5: BTC notarized, after next notary elections
#include <stdio.h> #include <stdio.h>
#include "LP_include.h" #include "LP_include.h"
portable_mutex_t LP_peermutex,LP_UTXOmutex,LP_utxomutex,LP_commandmutex,LP_cachemutex,LP_swaplistmutex,LP_forwardmutex,LP_pubkeymutex,LP_networkmutex,LP_psockmutex,LP_coinmutex,LP_messagemutex,LP_portfoliomutex,LP_electrummutex,LP_butxomutex,LP_reservedmutex,LP_nanorecvsmutex; portable_mutex_t LP_peermutex,LP_UTXOmutex,LP_utxomutex,LP_commandmutex,LP_cachemutex,LP_swaplistmutex,LP_forwardmutex,LP_pubkeymutex,LP_networkmutex,LP_psockmutex,LP_coinmutex,LP_messagemutex,LP_portfoliomutex,LP_electrummutex,LP_butxomutex,LP_reservedmutex,LP_nanorecvsmutex;

2
iguana/exchanges/LP_remember.c

@ -814,7 +814,7 @@ int32_t LP_rswap_checktx(struct LP_swap_remember *rswap,char *symbol,int32_t txi
rswap->sentflags[txi] = 1; rswap->sentflags[txi] = 1;
_LP_refht_update(coin,rswap->txids[txi],tx->height); _LP_refht_update(coin,rswap->txids[txi],tx->height);
} else LP_refht_update(symbol,rswap->txids[txi]); } else LP_refht_update(symbol,rswap->txids[txi]);
} } else printf("sent.%d %s txi.%d\n",rswap->sentflags[txi],bits256_str(str,rswap->txids[txi]),txi);
return(0); return(0);
} }

Loading…
Cancel
Save