Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
mastercore.h File Reference
#include "netbase.h"
#include "protocol.h"
#include "tinyformat.h"
+ Include dependency graph for mastercore.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CMPTally
 
struct  CMPTally::BalanceRecord
 
class  CMPSTOList
 
class  CMPTradeList
 
class  CMPTxList
 
class  CMPPending
 

Namespaces

 mastercore
 

Macros

#define DISABLE_METADEX
 
#define LOG_FILENAME   "mastercore.log"
 
#define INFO_FILENAME   "mastercore_crowdsales.log"
 
#define OWNERS_FILENAME   "mastercore_owners.log"
 
#define TEST_ECO_PROPERTY_1   (0x80000003UL)
 
#define MAX_INT_8_BYTES   (9223372036854775807UL)
 
#define DEV_MSC_BLOCK_290629   (1743358325718)
 
#define SP_STRING_FIELD_LEN   256
 
#define TRANSFER_FEE_PER_OWNER   (1)
 
#define FORMAT_BOOST_TXINDEXKEY   "index-tx-%s"
 
#define FORMAT_BOOST_SPKEY   "sp-%d"
 
#define MP_TX_PKT_V0   0
 
#define MP_TX_PKT_V1   1
 
#define MAX_BTC_OUTPUTS   16
 
#define MAX_SHA256_OBFUSCATION_TIMES   255
 
#define PACKET_SIZE_CLASS_A   19
 
#define PACKET_SIZE   31
 
#define MAX_PACKETS   64
 
#define MSC_PROPERTY_TYPE_INDIVISIBLE   1
 
#define MSC_PROPERTY_TYPE_DIVISIBLE   2
 
#define MSC_PROPERTY_TYPE_INDIVISIBLE_REPLACING   65
 
#define MSC_PROPERTY_TYPE_DIVISIBLE_REPLACING   66
 
#define MSC_PROPERTY_TYPE_INDIVISIBLE_APPENDING   129
 
#define MSC_PROPERTY_TYPE_DIVISIBLE_APPENDING   130
 
#define PKT_RETURNED_OBJECT   (1000)
 
#define PKT_ERROR   ( -9000)
 
#define DEX_ERROR_SELLOFFER   (-10000)
 
#define DEX_ERROR_ACCEPT   (-20000)
 
#define DEX_ERROR_PAYMENT   (-30000)
 
#define PKT_ERROR_SP   (-40000)
 
#define PKT_ERROR_STO   (-50000)
 
#define PKT_ERROR_SEND   (-60000)
 
#define PKT_ERROR_TRADEOFFER   (-70000)
 
#define PKT_ERROR_METADEX   (-80000)
 
#define METADEX_ERROR   (-81000)
 
#define PKT_ERROR_TOKENS   (-82000)
 
#define OMNI_PROPERTY_BTC   0
 
#define OMNI_PROPERTY_MSC   1
 
#define OMNI_PROPERTY_TMSC   2
 
#define MP_MAKE_ERROR_AND_LOG_FUNC(n)
 

Typedefs

typedef std::map< uint256, CMPPendingmastercore::PendingMap
 

Enumerations

enum  TransactionType {
  MSC_TYPE_SIMPLE_SEND = 0,
  MSC_TYPE_RESTRICTED_SEND = 2,
  MSC_TYPE_SEND_TO_OWNERS = 3,
  MSC_TYPE_SAVINGS_MARK = 10,
  MSC_TYPE_SAVINGS_COMPROMISED = 11,
  MSC_TYPE_RATELIMITED_MARK = 12,
  MSC_TYPE_AUTOMATIC_DISPENSARY = 15,
  MSC_TYPE_TRADE_OFFER = 20,
  MSC_TYPE_METADEX = 21,
  MSC_TYPE_ACCEPT_OFFER_BTC = 22,
  MSC_TYPE_NOTIFICATION = 31,
  MSC_TYPE_OFFER_ACCEPT_A_BET = 40,
  MSC_TYPE_CREATE_PROPERTY_FIXED = 50,
  MSC_TYPE_CREATE_PROPERTY_VARIABLE = 51,
  MSC_TYPE_PROMOTE_PROPERTY = 52,
  MSC_TYPE_CLOSE_CROWDSALE = 53,
  MSC_TYPE_CREATE_PROPERTY_MANUAL = 54,
  MSC_TYPE_GRANT_PROPERTY_TOKENS = 55,
  MSC_TYPE_REVOKE_PROPERTY_TOKENS = 56,
  MSC_TYPE_CHANGE_ISSUER_ADDRESS = 70,
  OMNICORE_MESSAGE_TYPE_ALERT = 65535
}
 
enum  BLOCKHEIGHTRESTRICTIONS {
  START_TESTNET_BLOCK =263000,
  START_REGTEST_BLOCK =5,
  MONEYMAN_REGTEST_BLOCK = 101,
  MONEYMAN_TESTNET_BLOCK = 270775,
  POST_EXODUS_BLOCK = 255366,
  MSC_DEX_BLOCK = 290630,
  MSC_SP_BLOCK = 297110,
  GENESIS_BLOCK = 249498,
  LAST_EXODUS_BLOCK = 255365,
  MSC_STO_BLOCK = 999999,
  MSC_METADEX_BLOCK = 999999,
  MSC_BET_BLOCK = 999999,
  MSC_MANUALSP_BLOCK = 323230,
  P2SH_BLOCK = 322000
}
 
enum  FILETYPES {
  FILETYPE_BALANCES = 0,
  FILETYPE_OFFERS,
  FILETYPE_ACCEPTS,
  FILETYPE_GLOBALS,
  FILETYPE_CROWDSALES,
  NUM_FILETYPES
}
 
enum  TallyType {
  BALANCE = 0,
  SELLOFFER_RESERVE = 1,
  ACCEPT_RESERVE = 2,
  PENDING = 3,
  METADEX_RESERVE = 4,
  TALLY_TYPE_COUNT
}
 

Functions

int mp_LogPrintStr (const std::string &str)
 
std::string FormatDivisibleMP (int64_t n, bool fSign=false)
 
std::string FormatMP (unsigned int, int64_t n, bool fSign=false)
 
uint256 send_MP (const string &FromAddress, const string &ToAddress, const string &RedeemAddress, unsigned int PropertyID, uint64_t Amount)
 
int64_t feeCheck (const string &address)
 
const std::string ExodusAddress ()
 
int mastercore_init (void)
 
int64_t getMPbalance (const string &Address, unsigned int property, TallyType ttype)
 
int64_t getUserAvailableMPbalance (const string &Address, unsigned int property)
 
bool IsMyAddress (const std::string &address)
 
string getLabel (const string &address)
 
int mastercore_handler_disc_begin (int nBlockNow, CBlockIndex const *pBlockIndex)
 
int mastercore_handler_disc_end (int nBlockNow, CBlockIndex const *pBlockIndex)
 
int mastercore_handler_block_begin (int nBlockNow, CBlockIndex const *pBlockIndex)
 
int mastercore_handler_block_end (int nBlockNow, CBlockIndex const *pBlockIndex, unsigned int)
 
int mastercore_handler_tx (const CTransaction &tx, int nBlock, unsigned int idx, CBlockIndex const *pBlockIndex)
 
int mastercore_save_state (CBlockIndex const *pBlockIndex)
 
string mastercore::strMPProperty (unsigned int i)
 
int mastercore::GetHeight (void)
 
uint32_t mastercore::GetLatestBlockTime (void)
 
bool mastercore::isPropertyDivisible (unsigned int propertyId)
 
string mastercore::getPropertyName (unsigned int propertyId)
 
bool mastercore::isCrowdsaleActive (unsigned int propertyId)
 
bool mastercore::isCrowdsalePurchase (uint256 txid, string address, int64_t *propertyId=NULL, int64_t *userTokens=NULL, int64_t *issuerTokens=NULL)
 
bool mastercore::isMPinBlockRange (int starting_block, int ending_block, bool bDeleteFound)
 
std::string mastercore::FormatIndivisibleMP (int64_t n)
 
int mastercore::ClassB_send (const string &senderAddress, const string &receiverAddress, const string &redemptionAddress, const vector< unsigned char > &data, uint256 &txid, int64_t additional=0)
 
uint256 mastercore::send_INTERNAL_1packet (const string &FromAddress, const string &ToAddress, const string &RedeemAddress, unsigned int PropertyID, uint64_t Amount, unsigned int PropertyID_2, uint64_t Amount_2, unsigned int TransactionType, int64_t additional, int *error_code=NULL)
 
bool mastercore::isTestEcosystemProperty (unsigned int property)
 
bool mastercore::isMainEcosystemProperty (unsigned int property)
 
CMPTallymastercore::getTally (const string &address)
 
bool mastercore::isMetaDExOfferActive (const uint256 txid, unsigned int propertyId)
 
int64_t mastercore::getTotalTokens (unsigned int propertyId, int64_t *n_owners_total=NULL)
 
bool mastercore::checkExpiredAlerts (unsigned int curBlock, uint64_t curTime)
 
int mastercore::set_wallet_totals ()
 
char * mastercore::c_strMasterProtocolTXType (int i)
 
bool mastercore::isTransactionTypeAllowed (int txBlock, unsigned int txProperty, unsigned int txType, unsigned short version, bool bAllowNullProperty=false)
 
bool mastercore::getValidMPTX (const uint256 &txid, int *block=NULL, unsigned int *type=NULL, uint64_t *nAmended=NULL)
 
bool mastercore::update_tally_map (string who, unsigned int which_currency, int64_t amount, TallyType ttype)
 
std::string mastercore::getMasterCoreAlertString ()
 

Variables

int const MAX_STATE_HISTORY = 50
 
CCriticalSection cs_tally
 
const int msc_debug_dex
 
uint64_t global_MSC_total
 
uint64_t global_MSC_RESERVED_total
 
uint64_t global_balance_money_maineco [100000]
 
uint64_t global_balance_reserved_maineco [100000]
 
uint64_t global_balance_money_testeco [100000]
 
uint64_t global_balance_reserved_testeco [100000]
 
std::map< string, CMPTallymastercore::mp_tally_map
 
CMPTxListmastercore::p_txlistdb
 
CMPTradeListmastercore::t_tradelistdb
 
CMPSTOListmastercore::s_stolistdb
 

Macro Definition Documentation

#define DEV_MSC_BLOCK_290629   (1743358325718)

Definition at line 29 of file mastercore.h.

#define DEX_ERROR_ACCEPT   (-20000)
#define DEX_ERROR_PAYMENT   (-30000)

Definition at line 118 of file mastercore.h.

Referenced by mastercore::DEx_payment().

#define DEX_ERROR_SELLOFFER   (-10000)
#define DISABLE_METADEX

Definition at line 14 of file mastercore.h.

#define FORMAT_BOOST_SPKEY   "sp-%d"
#define FORMAT_BOOST_TXINDEXKEY   "index-tx-%s"

Definition at line 37 of file mastercore.h.

Referenced by CMPSPInfo::findSPByTX(), CMPSPInfo::popBlock(), and CMPSPInfo::putSP().

#define INFO_FILENAME   "mastercore_crowdsales.log"

Definition at line 17 of file mastercore.h.

Referenced by mastercore::dumpCrowdsaleInfo().

#define LOG_FILENAME   "mastercore.log"

Definition at line 16 of file mastercore.h.

Referenced by mp_DebugPrintInit(), mp_LogPrintStr(), and shrinkDebugFile().

#define MAX_BTC_OUTPUTS   16

Definition at line 45 of file mastercore.h.

Referenced by parseTransaction().

#define MAX_INT_8_BYTES   (9223372036854775807UL)
#define MAX_PACKETS   64

Definition at line 51 of file mastercore.h.

Referenced by parseTransaction().

#define MAX_SHA256_OBFUSCATION_TIMES   255

Definition at line 47 of file mastercore.h.

Referenced by mastercore::ClassB_send(), parseTransaction(), and prepareObfuscatedHashes().

#define METADEX_ERROR   (-81000)
#define MP_MAKE_ERROR_AND_LOG_FUNC (   n)

Definition at line 138 of file mastercore.h.

#define MP_TX_PKT_V0   0

Definition at line 41 of file mastercore.h.

Referenced by CMPTransaction::logicMath_TradeOffer().

#define MP_TX_PKT_V1   1

Definition at line 42 of file mastercore.h.

Referenced by CMPTransaction::logicMath_TradeOffer().

#define MSC_PROPERTY_TYPE_DIVISIBLE   2
#define MSC_PROPERTY_TYPE_DIVISIBLE_APPENDING   130

Definition at line 83 of file mastercore.h.

Referenced by CMPSPInfo::Entry::isDivisible().

#define MSC_PROPERTY_TYPE_DIVISIBLE_REPLACING   66

Definition at line 81 of file mastercore.h.

Referenced by CMPSPInfo::Entry::isDivisible().

#define MSC_PROPERTY_TYPE_INDIVISIBLE   1
#define MSC_PROPERTY_TYPE_INDIVISIBLE_APPENDING   129

Definition at line 82 of file mastercore.h.

#define MSC_PROPERTY_TYPE_INDIVISIBLE_REPLACING   65

Definition at line 80 of file mastercore.h.

#define OMNI_PROPERTY_BTC   0
#define OMNI_PROPERTY_MSC   1
#define OMNI_PROPERTY_TMSC   2
#define OWNERS_FILENAME   "mastercore_owners.log"

Definition at line 18 of file mastercore.h.

Referenced by CMPTransaction::interpretPacket().

#define PACKET_SIZE   31

Definition at line 50 of file mastercore.h.

Referenced by mastercore::ClassB_send(), and parseTransaction().

#define PACKET_SIZE_CLASS_A   19

Definition at line 49 of file mastercore.h.

Referenced by parseTransaction(), and CMPTransaction::step1().

#define PKT_ERROR   ( -9000)
#define PKT_ERROR_METADEX   (-80000)

Definition at line 125 of file mastercore.h.

Referenced by CMPTransaction::logicMath_MetaDEx().

#define PKT_ERROR_SEND   (-60000)

Definition at line 123 of file mastercore.h.

Referenced by CMPTransaction::logicMath_SimpleSend().

#define PKT_ERROR_SP   (-40000)
#define PKT_ERROR_STO   (-50000)

Definition at line 122 of file mastercore.h.

Referenced by CMPTransaction::logicMath_SendToOwners().

#define PKT_ERROR_TOKENS   (-82000)
#define PKT_ERROR_TRADEOFFER   (-70000)

Definition at line 124 of file mastercore.h.

Referenced by CMPTransaction::logicMath_TradeOffer().

#define PKT_RETURNED_OBJECT   (1000)
#define SP_STRING_FIELD_LEN   256

Definition at line 31 of file mastercore.h.

Referenced by CMPTransaction::step2_Alert().

#define TEST_ECO_PROPERTY_1   (0x80000003UL)
#define TRANSFER_FEE_PER_OWNER   (1)

Definition at line 34 of file mastercore.h.

Referenced by CMPTransaction::logicMath_SendToOwners().

Enumeration Type Documentation

Enumerator
START_TESTNET_BLOCK 
START_REGTEST_BLOCK 
MONEYMAN_REGTEST_BLOCK 
MONEYMAN_TESTNET_BLOCK 
POST_EXODUS_BLOCK 
MSC_DEX_BLOCK 
MSC_SP_BLOCK 
GENESIS_BLOCK 
LAST_EXODUS_BLOCK 
MSC_STO_BLOCK 
MSC_METADEX_BLOCK 
MSC_BET_BLOCK 
MSC_MANUALSP_BLOCK 
P2SH_BLOCK 

Definition at line 86 of file mastercore.h.

enum FILETYPES
Enumerator
FILETYPE_BALANCES 
FILETYPE_OFFERS 
FILETYPE_ACCEPTS 
FILETYPE_GLOBALS 
FILETYPE_CROWDSALES 
NUM_FILETYPES 

Definition at line 104 of file mastercore.h.

enum TallyType
Enumerator
BALANCE 
SELLOFFER_RESERVE 
ACCEPT_RESERVE 
PENDING 
METADEX_RESERVE 
TALLY_TYPE_COUNT 

Definition at line 189 of file mastercore.h.

Enumerator
MSC_TYPE_SIMPLE_SEND 
MSC_TYPE_RESTRICTED_SEND 
MSC_TYPE_SEND_TO_OWNERS 
MSC_TYPE_SAVINGS_MARK 
MSC_TYPE_SAVINGS_COMPROMISED 
MSC_TYPE_RATELIMITED_MARK 
MSC_TYPE_AUTOMATIC_DISPENSARY 
MSC_TYPE_TRADE_OFFER 
MSC_TYPE_METADEX 
MSC_TYPE_ACCEPT_OFFER_BTC 
MSC_TYPE_NOTIFICATION 
MSC_TYPE_OFFER_ACCEPT_A_BET 
MSC_TYPE_CREATE_PROPERTY_FIXED 
MSC_TYPE_CREATE_PROPERTY_VARIABLE 
MSC_TYPE_PROMOTE_PROPERTY 
MSC_TYPE_CLOSE_CROWDSALE 
MSC_TYPE_CREATE_PROPERTY_MANUAL 
MSC_TYPE_GRANT_PROPERTY_TOKENS 
MSC_TYPE_REVOKE_PROPERTY_TOKENS 
MSC_TYPE_CHANGE_ISSUER_ADDRESS 
OMNICORE_MESSAGE_TYPE_ALERT 

Definition at line 54 of file mastercore.h.

Function Documentation

const std::string ExodusAddress ( )

Definition at line 4085 of file mastercore.cpp.

References exodus_address.

Referenced by CMPSPInfo::CMPSPInfo().

+ Here is the caller graph for this function:

int64_t feeCheck ( const string &  address)

Definition at line 2733 of file mastercore.cpp.

References selectCoins().

Referenced by SendMPDialog::updateFrom().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string FormatDivisibleMP ( int64_t  n,
bool  fSign = false 
)

Definition at line 325 of file mastercore.cpp.

References COIN, and strprintf.

Referenced by MatrixModel::fillin(), FormatMP(), getactivedexsells_MP(), CMPTradeList::getMatchingTrades(), CMPSTOList::getRecipients(), getsto_MP(), listtransactions_MP(), mastercore_init(), mscrpc(), populateRPCTransactionObject(), CMPTally::print(), SendMPDialog::sendMPTransaction(), SendMPDialog::updateBalances(), and SendMPDialog::updateFrom().

+ Here is the caller graph for this function:

std::string FormatMP ( unsigned  int,
int64_t  n,
bool  fSign = false 
)

Definition at line 349 of file mastercore.cpp.

References FormatDivisibleMP(), mastercore::FormatIndivisibleMP(), and mastercore::isPropertyDivisible().

Referenced by BalanceToJSON(), getactivecrowdsales_MP(), getcrowdsale_MP(), getgrants_MP(), getproperty_MP(), gettrade_MP(), CMPTransaction::logicMath_MetaDEx(), CMPTransaction::logicMath_SendToOwners(), MetaDexObjectToJSON(), populateRPCTransactionObject(), CMPTransaction::step2_Value(), and CMPMetaDEx::ToString().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

string getLabel ( const string &  address)

Definition at line 2620 of file mastercore.cpp.

References CWallet::cs_wallet, CBitcoinAddress::Get(), LOCK, CWallet::mapAddressBook, and pwalletMain.

Referenced by MatrixModel::fillin().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int64_t getMPbalance ( const string &  Address,
unsigned int  property,
TallyType  ttype 
)
int64_t getUserAvailableMPbalance ( const string &  Address,
unsigned int  property 
)

Definition at line 455 of file mastercore.cpp.

References BALANCE, getMPbalance(), and PENDING.

Referenced by BalanceToJSON(), MatrixModel::fillin(), mastercore::send_INTERNAL_1packet(), SendMPDialog::sendMPTransaction(), mastercore::set_wallet_totals(), and SendMPDialog::updateBalances().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool IsMyAddress ( const std::string &  address)

Definition at line 2608 of file mastercore.cpp.

References CBitcoinAddress::Get(), IsMine(), and pwalletMain.

Referenced by MatrixModel::fillin(), CMPSTOList::getMySTOReceipts(), CMPSTOList::getRecipients(), populateRPCTransactionObject(), mastercore::set_wallet_totals(), and SendMPDialog::updateProperty().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int mastercore_handler_block_begin ( int  nBlockNow,
CBlockIndex const *  pBlockIndex 
)

Definition at line 3989 of file mastercore.cpp.

References clear_all_state(), CMPSTOList::deleteAboveBlock(), CMPTradeList::deleteAboveBlock(), mastercore::eraseExpiredCrowdsale(), GENESIS_BLOCK, CMPTxList::isMPinBlockRange(), isNonMainNet(), load_most_relevant_state(), msc_initial_scan(), CBlockIndex::nHeight, mastercore::p_txlistdb, readPersistence(), RegTest(), mastercore::s_stolistdb, START_REGTEST_BLOCK, START_TESTNET_BLOCK, and mastercore::t_tradelistdb.

Referenced by msc_initial_scan().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int mastercore_handler_block_end ( int  nBlockNow,
CBlockIndex const *  pBlockIndex,
unsigned  int 
)

Definition at line 4034 of file mastercore.cpp.

References BALANCE, calculate_and_update_devmsc(), mastercore::checkExpiredAlerts(), eraseExpiredAccepts(), exodus_address, CBlockIndex::GetBlockTime(), getMPbalance(), mastercore_init(), mastercore_save_state(), OMNI_PROPERTY_MSC, mastercore::set_wallet_totals(), and writePersistence().

Referenced by msc_initial_scan().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int mastercore_handler_disc_begin ( int  nBlockNow,
CBlockIndex const *  pBlockIndex 
)

Definition at line 4074 of file mastercore.cpp.

References CBlockIndex::nHeight, and reorgRecoveryMaxHeight.

int mastercore_handler_disc_end ( int  nBlockNow,
CBlockIndex const *  pBlockIndex 
)

Definition at line 4081 of file mastercore.cpp.

int mastercore_handler_tx ( const CTransaction tx,
int  nBlock,
unsigned int  idx,
CBlockIndex const *  pBlockIndex 
)

Definition at line 2567 of file mastercore.cpp.

References CBlockIndex::GetBlockTime(), CTransaction::GetHash(), CMPTransaction::getNewAmount(), CMPTransaction::getType(), CMPTransaction::interpretPacket(), mastercore_init(), mastercore::p_txlistdb, parseTransaction(), pendingDelete(), CMPTransaction::print(), and CMPTxList::recordTX().

Referenced by msc_initial_scan().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int mastercore_init ( void  )

Definition at line 2405 of file mastercore.cpp.

References mastercore::_my_sps, BALANCE, clear_all_state(), DateTimeStrFormat(), exodus_address, exodus_balance, exodus_prev, exodus_testnet, FormatDivisibleMP(), fReindex, GENESIS_BLOCK, GetBoolArg(), GetDataDir(), getMPbalance(), GetTime(), isNonMainNet(), load_most_relevant_state(), mastercoreInitialized, MPPersistencePath, msc_initial_scan(), OMNI_PROPERTY_MSC, mastercore::p_txlistdb, readPersistence(), RegTest(), mastercore::s_stolistdb, CMPTxList::setLastAlert(), shrinkDebugFile(), START_REGTEST_BLOCK, START_TESTNET_BLOCK, mastercore::t_tradelistdb, TestNet(), and mastercore::update_tally_map().

Referenced by mastercore_handler_block_end(), and mastercore_handler_tx().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int mastercore_save_state ( CBlockIndex const *  pBlockIndex)

Definition at line 2378 of file mastercore.cpp.

References mastercore::_my_sps, FILETYPE_ACCEPTS, FILETYPE_BALANCES, FILETYPE_CROWDSALES, FILETYPE_GLOBALS, FILETYPE_OFFERS, CBlockIndex::phashBlock, prune_state_files(), CMPSPInfo::setWatermark(), and write_state_file().

Referenced by mastercore_handler_block_end().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int mp_LogPrintStr ( const std::string &  str)

Definition at line 204 of file mastercore.cpp.

References DateTimeStrFormat(), fileout, fLogTimestamps, fPrintToConsole, fPrintToDebugLog, fReopenDebugLog, GetDataDir(), GetTime(), LOG_FILENAME, mp_DebugPrintInit(), mp_debugPrintInitFlag, and mutexDebugLog.

+ Here is the call graph for this function:

uint256 send_MP ( const string &  FromAddress,
const string &  ToAddress,
const string &  RedeemAddress,
unsigned int  PropertyID,
uint64_t  Amount 
)

Variable Documentation

CCriticalSection cs_tally
uint64_t global_balance_money_maineco[100000]

Definition at line 90 of file mastercore.cpp.

uint64_t global_balance_money_testeco[100000]

Definition at line 92 of file mastercore.cpp.

uint64_t global_balance_reserved_maineco[100000]

Definition at line 91 of file mastercore.cpp.

uint64_t global_balance_reserved_testeco[100000]

Definition at line 93 of file mastercore.cpp.

uint64_t global_MSC_RESERVED_total

Definition at line 89 of file mastercore.cpp.

uint64_t global_MSC_total

Definition at line 88 of file mastercore.cpp.

int const MAX_STATE_HISTORY = 50

Definition at line 20 of file mastercore.h.

Referenced by prune_state_files(), and writePersistence().

const int msc_debug_dex