2 #define _MASTERCOIN_TX 1
51 bool operator()(pair<int64_t, string> p1, pair<int64_t, string> p2)
const
53 if (p1.first == p2.first)
return p1.second > p2.second;
54 else return p1.first < p2.first;
114 memset(&pkt, 0,
sizeof(pkt));
116 memset(&category, 0,
sizeof(category));
117 memset(&subcategory, 0,
sizeof(subcategory));
118 memset(&name, 0,
sizeof(name));
119 memset(&url, 0,
sizeof(url));
120 memset(&data, 0,
sizeof(data));
141 int step2_Alert(std::string *new_global_alert_message);
143 bool isOverrun(
const char *p,
unsigned int line);
148 void Set(
const uint256 &t,
int b,
unsigned int idx, int64_t bt)
156 void Set(
string s,
string r, uint64_t n,
const uint256 &t,
int b,
unsigned int idx,
unsigned char *p,
unsigned int size,
int fMultisig, uint64_t txf)
163 pkt_size = size <
sizeof(
pkt) ? size :
sizeof(pkt);
169 memcpy(&pkt, p, pkt_size);
175 if (block != other.
block)
return block > other.
block;
176 return tx_idx > other.
tx_idx;
181 file_log(
"BLOCK: %d =txid: %s =fee: %1.8lf\n", block, txid.
GetHex(), (double)tx_fee_paid/(
double)
COIN);
182 file_log(
"sender: %s ; receiver: %s\n", sender, receiver);
186 file_log(
"pkt: %s\n",
HexStr(pkt, pkt_size + pkt,
false));
197 #endif // #ifndef _MASTERCOIN_TX
const string & getSender() const
int logicMath_RevokeTokens(void)
void Set(const uint256 &t, int b, unsigned int idx, int64_t bt)
uint64_t getFeePaid() const
int logicMath_SimpleSend(void)
const string & getReceiver() const
int logicMath_GrantTokens(void)
unsigned int desired_property
bool isOverrun(const char *p, unsigned int line)
int parseTransaction(bool bRPConly, const CTransaction &wtx, int nBlock, unsigned int idx, CMPTransaction *mp_tx, unsigned int nTime=0)
unsigned int getProperty() const
char data[SP_STRING_FIELD_LEN]
char category[SP_STRING_FIELD_LEN]
char * c_strMasterProtocolTXType(int i)
const char * step2_SmartProperty(int &error_code)
int step2_Alert(std::string *new_global_alert_message)
int logicMath_SavingsCompromised(void)
#define SP_STRING_FIELD_LEN
unsigned short getPropertyType() const
char name[SP_STRING_FIELD_LEN]
unsigned short getVersion() const
uint64_t getNewAmount() const
int step3_sp_fixed(const char *p)
std::string GetHex() const
int logicMath_ChangeIssuer(void)
int logicMath_SavingsMark(void)
int logicMath_TradeOffer(CMPOffer *)
static const int64_t COIN
uint64_t getAmount() const
int logicMath_AcceptOffer_BTC(void)
void * memcpy(void *a, const void *b, size_t c)
unsigned char pkt[1+MAX_PACKETS *PACKET_SIZE]
int step3_sp_variable(const char *p)
char url[SP_STRING_FIELD_LEN]
The basic transaction that is broadcasted on the network and contained in blocks. ...
const string getTypeString() const
std::string HexStr(const T itbegin, const T itend, bool fSpaces=false)
bool operator<(const CMPTransaction &other) const
bool operator()(pair< int64_t, string > p1, pair< int64_t, string > p2) const
char subcategory[SP_STRING_FIELD_LEN]
unsigned int prev_prop_id
int interpretPacket(CMPOffer *obj_o=NULL, CMPMetaDEx *mdex_o=NULL)
int logicMath_SendToOwners(FILE *fp=NULL)
unsigned int getType() const
void Set(string s, string r, uint64_t n, const uint256 &t, int b, unsigned int idx, unsigned char *p, unsigned int size, int fMultisig, uint64_t txf)
int logicMath_MetaDEx(CMPMetaDEx *)