6 #ifndef RAVENCOIN_MESSAGES_H 7 #define RAVENCOIN_MESSAGES_H 92 return strprintf(
"CMessage(%s, Name=%s, Message=%s, Expires=%u, Time=%u, BlockHeight=%u)", out.
ToString(), strName,
96 CMessage(
const COutPoint &out,
const std::string &strName,
const std::string &ipfsHash,
const int64_t &nExpiredTime,
100 return out < rhs.
out;
105 template<
typename Stream,
typename Operation>
114 if (ser_action.ForRead()) {
133 this->assetName = message.
strName;
138 std::string createJsonString();
141 #endif //RAVENCOIN_MESSAGES_H
std::set< COutPoint > setDirtyMessagesRemove
std::string ToString() const
void OrphanMessage(const CMessage &message)
std::map< COutPoint, CMessage > mapDirtyMessagesOrphaned
std::map< COutPoint, CMessage > mapDirtyMessagesAdd
std::set< std::string > setDirtySeenAddressAdd
void AddMessage(const CMessage &message)
std::string ToString() const
std::set< std::string > setSubscribedChannelsAskedForFalse
void SerializationOp(Stream &s, Operation ser_action)
std::set< std::string > setAddressAskedForFalse
void Serialize(Stream &s, char a)
void RemoveMessage(const CMessage &message)
bool IsAddressSeen(const std::string &address)
std::set< std::string > setDirtyChannelsAdd
void AddAddressSeen(const std::string &address)
bool ScanForMessageChannels(std::string &strError)
An outpoint - a combination of a transaction hash and an index n into its vout.
MessageStatus MessageStatusFromInt(int8_t nStatus)
CZMQMessage(const CMessage &message)
bool operator<(const CMessage &rhs) const
void RemoveChannel(const std::string &name)
CCriticalSection cs_messaging
bool GetMessage(const COutPoint &out, CMessage &message)
void Unserialize(Stream &s, char &a)
bool IsChannelSubscribed(const std::string &name)
size_t GetMessageDirtyCacheSize()
std::string EncodeAssetData(std::string decoded)
Wrapped boost mutex: supports recursive locking, but no waiting TODO: We should move away from using ...
void AddChannel(const std::string &name)
std::set< std::string > setDirtyChannelsRemove
int8_t IntFromMessageStatus(MessageStatus status)
std::string MessageStatusToString(MessageStatus status)