Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

llmq::CInstantSendDb Class Reference

#include <quorums_instantsend.h>

+ Collaboration diagram for llmq::CInstantSendDb:

Public Member Functions

 CInstantSendDb (CDBWrapper &_db)
 
void WriteNewInstantSendLock (const uint256 &hash, const CInstantSendLock &islock)
 
void RemoveInstantSendLock (CDBBatch &batch, const uint256 &hash, CInstantSendLockPtr islock)
 
void WriteInstantSendLockMined (const uint256 &hash, int nHeight)
 
void RemoveInstantSendLockMined (const uint256 &hash, int nHeight)
 
void WriteInstantSendLockArchived (CDBBatch &batch, const uint256 &hash, int nHeight)
 
std::unordered_map< uint256, CInstantSendLockPtrRemoveConfirmedInstantSendLocks (int nUntilHeight)
 
void RemoveArchivedInstantSendLocks (int nUntilHeight)
 
bool HasArchivedInstantSendLock (const uint256 &islockHash)
 
size_t GetInstantSendLockCount ()
 
CInstantSendLockPtr GetInstantSendLockByHash (const uint256 &hash)
 
uint256 GetInstantSendLockHashByTxid (const uint256 &txid)
 
CInstantSendLockPtr GetInstantSendLockByTxid (const uint256 &txid)
 
CInstantSendLockPtr GetInstantSendLockByInput (const COutPoint &outpoint)
 
std::vector< uint256GetInstantSendLocksByParent (const uint256 &parent)
 
std::vector< uint256RemoveChainedInstantSendLocks (const uint256 &islockHash, const uint256 &txid, int nHeight)
 

Private Attributes

CDBWrapperdb
 
unordered_lru_cache< uint256, CInstantSendLockPtr, StaticSaltedHasher, 10000 > islockCache
 
unordered_lru_cache< uint256, uint256, StaticSaltedHasher, 10000 > txidCache
 
unordered_lru_cache< COutPoint, uint256, SaltedOutpointHasher, 10000 > outpointCache
 

Detailed Description

Definition at line 43 of file quorums_instantsend.h.

Constructor & Destructor Documentation

◆ CInstantSendDb()

llmq::CInstantSendDb::CInstantSendDb ( CDBWrapper _db)
inlineexplicit

Definition at line 53 of file quorums_instantsend.h.

Member Function Documentation

◆ GetInstantSendLockByHash()

◆ GetInstantSendLockByInput()

◆ GetInstantSendLockByTxid()

◆ GetInstantSendLockCount()

size_t llmq::CInstantSendDb::GetInstantSendLockCount ( )

◆ GetInstantSendLockHashByTxid()

◆ GetInstantSendLocksByParent()

std::vector< uint256 > llmq::CInstantSendDb::GetInstantSendLocksByParent ( const uint256 parent)

◆ HasArchivedInstantSendLock()

bool llmq::CInstantSendDb::HasArchivedInstantSendLock ( const uint256 islockHash)

◆ RemoveArchivedInstantSendLocks()

◆ RemoveChainedInstantSendLocks()

std::vector< uint256 > llmq::CInstantSendDb::RemoveChainedInstantSendLocks ( const uint256 islockHash,
const uint256 txid,
int  nHeight 
)

◆ RemoveConfirmedInstantSendLocks()

◆ RemoveInstantSendLock()

◆ RemoveInstantSendLockMined()

void llmq::CInstantSendDb::RemoveInstantSendLockMined ( const uint256 hash,
int  nHeight 
)

◆ WriteInstantSendLockArchived()

void llmq::CInstantSendDb::WriteInstantSendLockArchived ( CDBBatch batch,
const uint256 hash,
int  nHeight 
)

◆ WriteInstantSendLockMined()

void llmq::CInstantSendDb::WriteInstantSendLockMined ( const uint256 hash,
int  nHeight 
)

◆ WriteNewInstantSendLock()

Member Data Documentation

◆ db

◆ islockCache

unordered_lru_cache<uint256, CInstantSendLockPtr, StaticSaltedHasher, 10000> llmq::CInstantSendDb::islockCache
private

◆ outpointCache

unordered_lru_cache<COutPoint, uint256, SaltedOutpointHasher, 10000> llmq::CInstantSendDb::outpointCache
private

◆ txidCache

unordered_lru_cache<uint256, uint256, StaticSaltedHasher, 10000> llmq::CInstantSendDb::txidCache
private

The documentation for this class was generated from the following files:
Released under the MIT license