PIVX Core  5.6.99
P2P Digital Currency
Classes | Public Member Functions | Public Attributes | List of all members
llmq::CSigSharesNodeState Class Reference

#include <quorums_signing_shares.h>

Collaboration diagram for llmq::CSigSharesNodeState:
[legend]

Classes

struct  Session
 
struct  SessionInfo
 

Public Member Functions

SessionGetOrCreateSessionFromShare (const CSigShare &sigShare)
 
SessionGetOrCreateSessionFromAnn (const CSigSesAnn &ann)
 
SessionGetSessionBySignHash (const uint256 &signHash)
 
SessionGetSessionByRecvId (uint32_t sessionId)
 
bool GetSessionInfoByRecvId (uint32_t sessionId, SessionInfo &retInfo)
 
void RemoveSession (const uint256 &signHash)
 

Public Attributes

std::unordered_map< uint256, Session, StaticSaltedHashersessions
 
std::unordered_map< uint32_t, Session * > sessionByRecvId
 
uint32_t nextSendSessionId {1}
 
SigShareMap< CSigSharependingIncomingSigShares
 
SigShareMap< int64_t > requestedSigShares
 
bool banned {false}
 

Detailed Description

Definition at line 282 of file quorums_signing_shares.h.

Member Function Documentation

◆ GetOrCreateSessionFromAnn()

CSigSharesNodeState::Session & llmq::CSigSharesNodeState::GetOrCreateSessionFromAnn ( const CSigSesAnn ann)

Definition at line 132 of file quorums_signing_shares.cpp.

Here is the call graph for this function:

◆ GetOrCreateSessionFromShare()

CSigSharesNodeState::Session & llmq::CSigSharesNodeState::GetOrCreateSessionFromShare ( const CSigShare sigShare)

Definition at line 123 of file quorums_signing_shares.cpp.

Here is the call graph for this function:

◆ GetSessionByRecvId()

CSigSharesNodeState::Session * llmq::CSigSharesNodeState::GetSessionByRecvId ( uint32_t  sessionId)

Definition at line 151 of file quorums_signing_shares.cpp.

Here is the caller graph for this function:

◆ GetSessionBySignHash()

CSigSharesNodeState::Session * llmq::CSigSharesNodeState::GetSessionBySignHash ( const uint256 signHash)

Definition at line 142 of file quorums_signing_shares.cpp.

Here is the caller graph for this function:

◆ GetSessionInfoByRecvId()

bool llmq::CSigSharesNodeState::GetSessionInfoByRecvId ( uint32_t  sessionId,
SessionInfo retInfo 
)

Definition at line 160 of file quorums_signing_shares.cpp.

Here is the call graph for this function:

◆ RemoveSession()

void llmq::CSigSharesNodeState::RemoveSession ( const uint256 signHash)

Definition at line 176 of file quorums_signing_shares.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ banned

bool llmq::CSigSharesNodeState::banned {false}

Definition at line 321 of file quorums_signing_shares.h.

◆ nextSendSessionId

uint32_t llmq::CSigSharesNodeState::nextSendSessionId {1}

Definition at line 316 of file quorums_signing_shares.h.

◆ pendingIncomingSigShares

SigShareMap<CSigShare> llmq::CSigSharesNodeState::pendingIncomingSigShares

Definition at line 318 of file quorums_signing_shares.h.

◆ requestedSigShares

SigShareMap<int64_t> llmq::CSigSharesNodeState::requestedSigShares

Definition at line 319 of file quorums_signing_shares.h.

◆ sessionByRecvId

std::unordered_map<uint32_t, Session*> llmq::CSigSharesNodeState::sessionByRecvId

Definition at line 315 of file quorums_signing_shares.h.

◆ sessions

std::unordered_map<uint256, Session, StaticSaltedHasher> llmq::CSigSharesNodeState::sessions
Todo:
limit number of sessions per node

Definition at line 313 of file quorums_signing_shares.h.


The documentation for this class was generated from the following files: