![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
#include "base58.h"#include "rpcserver.h"#include "init.h"#include "util.h"#include "wallet.h"#include <stdint.h>#include <string.h>#include <map>#include <set>#include <fstream>#include <algorithm>#include <vector>#include <utility>#include <string>#include <boost/assign/list_of.hpp>#include <boost/algorithm/string.hpp>#include <boost/algorithm/string/find.hpp>#include <boost/algorithm/string/join.hpp>#include <boost/lexical_cast.hpp>#include <boost/format.hpp>#include <boost/filesystem.hpp>#include "json/json_spirit_utils.h"#include "json/json_spirit_value.h"#include "leveldb/db.h"#include "leveldb/write_batch.h"#include <openssl/sha.h>#include <boost/math/constants/constants.hpp>#include <boost/multiprecision/cpp_int.hpp>#include <boost/multiprecision/cpp_dec_float.hpp>#include "mastercore.h"#include "mastercore_convert.h"#include "mastercore_dex.h"#include "mastercore_tx.h"
Include dependency graph for mastercore_dex.cpp:Go to the source code of this file.
Enumerations | |
| enum | MatchReturnType { NOTHING = 0, TRADED = 1, TRADED_MOREINSELLER, TRADED_MOREINBUYER, ADDED, CANCELLED } |
Functions | |
| const string | getTradeReturnType (MatchReturnType ret) |
| bool | operator== (XDOUBLE first, XDOUBLE second) |
| bool | operator!= (XDOUBLE first, XDOUBLE second) |
| bool | operator<= (XDOUBLE first, XDOUBLE second) |
| bool | operator>= (XDOUBLE first, XDOUBLE second) |
| static void | PriceCheck (const string &label, XDOUBLE left, XDOUBLE right) |
| static MatchReturnType | x_Trade (CMPMetaDEx *newo) |
| unsigned int | eraseExpiredAccepts (int blockNow) |
Variables | |
| int | msc_debug_metadex1 |
| int | msc_debug_metadex2 |
| int | msc_debug_metadex3 |
| enum MatchReturnType |
| Enumerator | |
|---|---|
| NOTHING | |
| TRADED | |
| TRADED_MOREINSELLER | |
| TRADED_MOREINBUYER | |
| ADDED | |
| CANCELLED | |
Definition at line 83 of file mastercore_dex.cpp.
Definition at line 711 of file mastercore_dex.cpp.
References atoi(), CMPAccept::block, mastercore::DEx_acceptDestroy(), CMPAccept::getBlockTimeLimit(), and mastercore::my_accepts.
Referenced by mastercore_handler_block_end().
Here is the call graph for this function:
Here is the caller graph for this function:| const string getTradeReturnType | ( | MatchReturnType | ret | ) |
Definition at line 93 of file mastercore_dex.cpp.
References ADDED, CANCELLED, NOTHING, TRADED, TRADED_MOREINBUYER, and TRADED_MOREINSELLER.
Referenced by x_Trade().
Here is the caller graph for this function:Definition at line 112 of file mastercore_dex.cpp.
Definition at line 117 of file mastercore_dex.cpp.
References INTERNAL_PRECISION_LEN.
Definition at line 107 of file mastercore_dex.cpp.
References INTERNAL_PRECISION_LEN.
Definition at line 122 of file mastercore_dex.cpp.
References INTERNAL_PRECISION_LEN.
Definition at line 127 of file mastercore_dex.cpp.
References DISPLAY_PRECISION_LEN.
Referenced by mastercore::MetaDEx_ADD(), and x_Trade().
Here is the caller graph for this function:
|
static |
Definition at line 140 of file mastercore_dex.cpp.
References BALANCE, DISPLAY_PRECISION_LEN, CMPMetaDEx::effectivePrice(), mastercore::get_Prices(), CMPMetaDEx::getAddr(), CMPMetaDEx::getAmountDesired(), CMPMetaDEx::getAmountForSale(), CMPMetaDEx::getBlock(), CMPMetaDEx::getDesProperty(), CMPMetaDEx::getHash(), CMPMetaDEx::getProperty(), getTradeReturnType(), INTERNAL_PRECISION_LEN, METADEX_RESERVE, NOTHING, PriceCheck(), CMPTradeList::recordTrade(), CMPMetaDEx::setAmountDesired(), CMPMetaDEx::setAmountForSale(), mastercore::t_tradelistdb, CMPMetaDEx::ToString(), TRADED, TRADED_MOREINBUYER, TRADED_MOREINSELLER, and mastercore::update_tally_map().
Referenced by mastercore::MetaDEx_ADD().
Here is the call graph for this function:
Here is the caller graph for this function:| int msc_debug_metadex1 |
Definition at line 121 of file mastercore.cpp.
| int msc_debug_metadex2 |
Definition at line 122 of file mastercore.cpp.
| int msc_debug_metadex3 |
Definition at line 123 of file mastercore.cpp.
1.8.8