Skip to content

sgns::securecrdt::CandidateLimits

#include <SecureCrdtCandidate.hpp>

Public Functions

Name
bool CandidateCountAllowed(size_t count)
bool ApprovalCountAllowed(size_t count)
bool ApprovalBytesAllowed(size_t current_bytes, size_t additional_bytes)

Public Attributes

Name
constexpr size_t MAX_CANDIDATE_BYTES
constexpr size_t MAX_ACTIVE_CANDIDATES_PER_PREDECESSOR
constexpr size_t MAX_APPROVALS_PER_CANDIDATE
constexpr size_t MAX_ACTIVE_APPROVAL_BYTES_PER_PREDECESSOR

Public Functions Documentation

function CandidateCountAllowed

static bool CandidateCountAllowed(
    size_t count
)

function ApprovalCountAllowed

static bool ApprovalCountAllowed(
    size_t count
)

function ApprovalBytesAllowed

static bool ApprovalBytesAllowed(
    size_t current_bytes,
    size_t additional_bytes
)

Public Attributes Documentation

variable MAX_CANDIDATE_BYTES

static constexpr size_t MAX_CANDIDATE_BYTES = 65536;

variable MAX_ACTIVE_CANDIDATES_PER_PREDECESSOR

static constexpr size_t MAX_ACTIVE_CANDIDATES_PER_PREDECESSOR = 32;

variable MAX_APPROVALS_PER_CANDIDATE

static constexpr size_t MAX_APPROVALS_PER_CANDIDATE = 256;

variable MAX_ACTIVE_APPROVAL_BYTES_PER_PREDECESSOR

static constexpr size_t MAX_ACTIVE_APPROVAL_BYTES_PER_PREDECESSOR = 64 * 1024 * 1024;

Updated on 2026-09-25 at 15:46:10 +0000