diff --git a/.gitignore b/.gitignore index c68d66ed4..f166a52e6 100755 --- a/.gitignore +++ b/.gitignore @@ -465,3 +465,5 @@ iguana/DB/SWAPS/3085356347-2346291696 iguana/DB/SWAPS/1819165332-1507632737 iguana/DB/SWAPS/283982730-556239841 + +iguana/marketmaker.dSYM/Contents/Info.plist diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 1a4536fba..550852f3e 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -18,6 +18,11 @@ // marketmaker // +// price query is redundant as there is a pricefeed for all pubkeys now +// get orderbook, find pubkey of the one offering it and directly reserve it +// then it is the same as current logic, just skip the "price" step +// "notified" push is wrong + double LP_query(char *method,struct LP_quoteinfo *qp,char *base,char *rel,bits256 mypub) { cJSON *reqjson; int32_t i,flag = 0; double price = 0.; struct LP_utxoinfo *utxo; diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 748f33f50..fbc4e3ccd 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -366,7 +366,12 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,double profit OS_randombytes((void *)&n,sizeof(n)); srand((int32_t)n); if ( userhome != 0 && userhome[0] != 0 ) + { safecopy(USERHOME,userhome,sizeof(USERHOME)); +#ifdef __APPLE__ + strcat(USERHOME,"/Library/Application Support"); +#endif + } portable_mutex_init(&LP_peermutex); portable_mutex_init(&LP_utxomutex); portable_mutex_init(&LP_commandmutex); diff --git a/iguana/marketmaker.dSYM/Contents/Resources/DWARF/marketmaker b/iguana/marketmaker.dSYM/Contents/Resources/DWARF/marketmaker new file mode 100644 index 000000000..20c28fdf2 Binary files /dev/null and b/iguana/marketmaker.dSYM/Contents/Resources/DWARF/marketmaker differ diff --git a/iguana/userpass b/iguana/userpass new file mode 100644 index 000000000..058af4d52 --- /dev/null +++ b/iguana/userpass @@ -0,0 +1 @@ +export userpass="c3d8c2a364b7d18c1f9d7321d017b92e9f9c791e4f5c741214fefdea8a071256"