Raven Core  3.0.0
P2P Digital Currency
Functions | Variables
messages.cpp File Reference
#include <validation.h>
#include <chainparams.h>
#include <wallet/wallet.h>
#include <script/ismine.h>
#include <base58.h>
#include "messages.h"
#include "messagedb.h"
#include <primitives/block.h>
Include dependency graph for messages.cpp:

Go to the source code of this file.

Functions

int8_t IntFromMessageStatus (MessageStatus status)
 
MessageStatus MessageStatusFromInt (int8_t nStatus)
 
std::string MessageStatusToString (MessageStatus status)
 
bool IsChannelSubscribed (const std::string &name)
 
bool GetMessage (const COutPoint &out, CMessage &message)
 
void AddChannel (const std::string &name)
 
void RemoveChannel (const std::string &name)
 
void AddMessage (const CMessage &message)
 
void RemoveMessage (const CMessage &message)
 
void RemoveMessage (const COutPoint &out)
 
void OrphanMessage (const COutPoint &out)
 
void OrphanMessage (const CMessage &message)
 
bool ScanForMessageChannels (std::string &strError)
 
bool IsAddressSeen (const std::string &address)
 
void AddAddressSeen (const std::string &address)
 
size_t GetMessageDirtyCacheSize ()
 

Variables

std::set< COutPointsetDirtyMessagesRemove
 
std::map< COutPoint, CMessagemapDirtyMessagesAdd
 
std::map< COutPoint, CMessagemapDirtyMessagesOrphaned
 
std::set< std::string > setDirtyChannelsAdd
 
std::set< std::string > setDirtyChannelsRemove
 
std::set< std::string > setSubscribedChannelsAskedForFalse
 
std::set< std::string > setDirtySeenAddressAdd
 
std::set< std::string > setAddressAskedForFalse
 
CCriticalSection cs_messaging
 

Function Documentation

◆ AddAddressSeen()

void AddAddressSeen ( const std::string &  address)

Definition at line 293 of file messages.cpp.

Here is the caller graph for this function:

◆ AddChannel()

void AddChannel ( const std::string &  name)

Definition at line 130 of file messages.cpp.

Here is the caller graph for this function:

◆ AddMessage()

void AddMessage ( const CMessage message)

Definition at line 149 of file messages.cpp.

◆ GetMessage()

bool GetMessage ( const COutPoint out,
CMessage message 
)

Definition at line 100 of file messages.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetMessageDirtyCacheSize()

size_t GetMessageDirtyCacheSize ( )

Definition at line 299 of file messages.cpp.

◆ IntFromMessageStatus()

int8_t IntFromMessageStatus ( MessageStatus  status)

Definition at line 29 of file messages.cpp.

Here is the caller graph for this function:

◆ IsAddressSeen()

bool IsAddressSeen ( const std::string &  address)

Definition at line 267 of file messages.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsChannelSubscribed()

bool IsChannelSubscribed ( const std::string &  name)

Definition at line 67 of file messages.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MessageStatusFromInt()

MessageStatus MessageStatusFromInt ( int8_t  nStatus)

Definition at line 34 of file messages.cpp.

Here is the caller graph for this function:

◆ MessageStatusToString()

std::string MessageStatusToString ( MessageStatus  status)

Definition at line 39 of file messages.cpp.

◆ OrphanMessage() [1/2]

void OrphanMessage ( const COutPoint out)

Definition at line 174 of file messages.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OrphanMessage() [2/2]

void OrphanMessage ( const CMessage message)

Definition at line 181 of file messages.cpp.

◆ RemoveChannel()

void RemoveChannel ( const std::string &  name)

Definition at line 140 of file messages.cpp.

Here is the caller graph for this function:

◆ RemoveMessage() [1/2]

void RemoveMessage ( const CMessage message)

Definition at line 159 of file messages.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RemoveMessage() [2/2]

void RemoveMessage ( const COutPoint out)

Definition at line 164 of file messages.cpp.

◆ ScanForMessageChannels()

bool ScanForMessageChannels ( std::string &  strError)

Definition at line 189 of file messages.cpp.

Here is the call graph for this function:

Variable Documentation

◆ cs_messaging

CCriticalSection cs_messaging

Definition at line 26 of file messages.cpp.

◆ mapDirtyMessagesAdd

std::map<COutPoint, CMessage> mapDirtyMessagesAdd

Definition at line 16 of file messages.cpp.

◆ mapDirtyMessagesOrphaned

std::map<COutPoint, CMessage> mapDirtyMessagesOrphaned

Definition at line 17 of file messages.cpp.

◆ setAddressAskedForFalse

std::set<std::string> setAddressAskedForFalse

Definition at line 24 of file messages.cpp.

◆ setDirtyChannelsAdd

std::set<std::string> setDirtyChannelsAdd

Definition at line 19 of file messages.cpp.

◆ setDirtyChannelsRemove

std::set<std::string> setDirtyChannelsRemove

Definition at line 20 of file messages.cpp.

◆ setDirtyMessagesRemove

std::set<COutPoint> setDirtyMessagesRemove

Definition at line 15 of file messages.cpp.

◆ setDirtySeenAddressAdd

std::set<std::string> setDirtySeenAddressAdd

Definition at line 23 of file messages.cpp.

◆ setSubscribedChannelsAskedForFalse

std::set<std::string> setSubscribedChannelsAskedForFalse

Definition at line 21 of file messages.cpp.