PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Classes | Macros | Functions | Variables
swifttx.h File Reference
#include "base58.h"
#include "key.h"
#include "main.h"
#include "net.h"
#include "sync.h"
#include "util.h"
Include dependency graph for swifttx.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CConsensusVote
 
class  CTransactionLock
 

Macros

#define SWIFTTX_SIGNATURES_REQUIRED   6
 
#define SWIFTTX_SIGNATURES_TOTAL   10
 

Functions

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

Variables

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

Macro Definition Documentation

◆ SWIFTTX_SIGNATURES_REQUIRED

#define SWIFTTX_SIGNATURES_REQUIRED   6

Definition at line 26 of file swifttx.h.

◆ SWIFTTX_SIGNATURES_TOTAL

#define SWIFTTX_SIGNATURES_TOTAL   10

Definition at line 27 of file swifttx.h.

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.

◆ nCompleteTXLocks

int nCompleteTXLocks

Definition at line 30 of file swifttx.cpp.