PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Functions | Variables
swifttx.cpp File Reference
#include "swifttx.h"
#include "activemasternode.h"
#include "base58.h"
#include "key.h"
#include "masternode-sync.h"
#include "masternodeman.h"
#include "messagesigner.h"
#include "net.h"
#include "protocol.h"
#include "sync.h"
#include "util.h"
#include "validationinterface.h"
#include <boost/foreach.hpp>
Include dependency graph for swifttx.cpp:

Go to the source code of this file.

Functions

void ProcessMessageSwiftTX (CNode *pfrom, std::string &strCommand, CDataStream &vRecv)
 
bool IsIXTXValid (const CTransaction &txCollateral)
 
int64_t CreateNewLock (CTransaction tx)
 
void DoConsensusVote (CTransaction &tx, int64_t nBlockHeight)
 
bool ProcessConsensusVote (CNode *pnode, CConsensusVote &ctx)
 
bool CheckForConflictingLocks (CTransaction &tx)
 
int64_t GetAverageVoteTime ()
 
void CleanTransactionLocksList ()
 
int GetTransactionLockSignatures (uint256 txHash)
 

Variables

std::map< uint256, CTransactionmapTxLockReq
 
std::map< uint256, CTransactionmapTxLockReqRejected
 
std::map< uint256, CConsensusVotemapTxLockVote
 
std::map< uint256, CTransactionLockmapTxLocks
 
std::map< COutPoint, uint256mapLockedInputs
 
std::map< uint256, int64_t > mapUnknownVotes
 
int nCompleteTXLocks
 

Function Documentation

◆ CheckForConflictingLocks()

bool CheckForConflictingLocks ( CTransaction tx)

Definition at line 386 of file swifttx.cpp.

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

◆ CleanTransactionLocksList()

void CleanTransactionLocksList ( )

Definition at line 424 of file swifttx.cpp.

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

◆ CreateNewLock()

int64_t CreateNewLock ( CTransaction  tx)

Definition at line 217 of file swifttx.cpp.

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

◆ DoConsensusVote()

void DoConsensusVote ( CTransaction tx,
int64_t  nBlockHeight 
)

Definition at line 255 of file swifttx.cpp.

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

◆ GetAverageVoteTime()

int64_t GetAverageVoteTime ( )

Definition at line 409 of file swifttx.cpp.

◆ GetTransactionLockSignatures()

int GetTransactionLockSignatures ( uint256  txHash)

Definition at line 454 of file swifttx.cpp.

Here is the caller graph for this function:

◆ IsIXTXValid()

bool IsIXTXValid ( const CTransaction txCollateral)

Definition at line 175 of file swifttx.cpp.

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

◆ ProcessConsensusVote()

bool ProcessConsensusVote ( CNode pnode,
CConsensusVote ctx 
)

Definition at line 296 of file swifttx.cpp.

◆ ProcessMessageSwiftTX()

void ProcessMessageSwiftTX ( CNode pfrom,
std::string &  strCommand,
CDataStream vRecv 
)
Todo:
: Look into other script types that are normal and can be included

Definition at line 39 of file swifttx.cpp.

Here is the call graph for this function:

Variable Documentation

◆ mapLockedInputs

std::map<COutPoint, uint256> mapLockedInputs

Definition at line 28 of file swifttx.cpp.

◆ mapTxLockReq

std::map<uint256, CTransaction> mapTxLockReq

Definition at line 24 of file swifttx.cpp.

◆ mapTxLockReqRejected

std::map<uint256, CTransaction> mapTxLockReqRejected

Definition at line 25 of file swifttx.cpp.

◆ mapTxLocks

std::map<uint256, CTransactionLock> mapTxLocks

Definition at line 27 of file swifttx.cpp.

◆ mapTxLockVote

std::map<uint256, CConsensusVote> mapTxLockVote

Definition at line 26 of file swifttx.cpp.

◆ mapUnknownVotes

std::map<uint256, int64_t> mapUnknownVotes

Definition at line 29 of file swifttx.cpp.

◆ nCompleteTXLocks

int nCompleteTXLocks

Definition at line 30 of file swifttx.cpp.