Module constants

Module constants 

Source
Expand description

Protocol constants for CHIE.

Constantsยง

ANOMALY_Z_SCORE_THRESHOLD
Z-score threshold for anomaly detection.
BANDWIDTH_PROOF_PROTOCOL
Bandwidth proof protocol ID.
BASE_BACKOFF_DELAY_MS
Base backoff delay in milliseconds.
BASE_POINTS_PER_GB
Base reward: 10 points per GB.
CHUNK_REQUEST_TIMEOUT_MS
Chunk request timeout (10 seconds in milliseconds).
CONTENT_ANNOUNCEMENT_PROTOCOL
Content announcement protocol ID.
CREATOR_SHARE_PERCENTAGE
Creator share percentage (20%).
DB_POOL_SIZE
Database connection pool size.
DB_QUERY_TIMEOUT_SECS
Database query timeout (30 seconds).
DEFAULT_BANDWIDTH_LIMIT_BPS
Default bandwidth limit (100 Mbps).
DEFAULT_PAGE_SIZE
Default page size for list queries.
DEFAULT_REPUTATION
Default reputation for new peers.
DEFAULT_STORAGE_ALLOCATION
Default storage allocation (10 GB).
DHT_QUERY_TIMEOUT_MS
Default DHT query timeout (30 seconds in milliseconds).
GOSSIPSUB_CONTENT_ANNOUNCE_TOPIC
Topic for content announcements.
GOSSIPSUB_DEMAND_UPDATE_TOPIC
Topic for demand updates.
GOSSIPSUB_PEER_DISCOVERY_TOPIC
Topic for peer discovery.
HEALTH_CHECK_INTERVAL_SECS
Health check interval (30 seconds).
JOB_RETRY_ATTEMPTS
Job retry attempts.
JOB_TIMEOUT_SECS
Job timeout (10 minutes in seconds).
LATENCY_PENALTY_MULTIPLIER
Latency penalty multiplier (0.5x if above threshold).
LATENCY_PENALTY_THRESHOLD_MS
Latency penalty threshold (500ms).
MAX_API_KEYS_PER_USER
Maximum API keys per user.
MAX_BACKOFF_DELAY_MS
Maximum backoff delay in milliseconds.
MAX_BANDWIDTH_DEVIATION_PERCENT
Maximum bandwidth deviation percentage.
MAX_CONCURRENT_TRANSFERS
Maximum concurrent transfers per node.
MAX_CONTENT_PRICE
Maximum price for content (1 million points).
MAX_DEMAND_MULTIPLIER
Maximum demand multiplier (3x).
MAX_DHT_PEERS
Maximum peers to return in DHT query.
MAX_EMAIL_LENGTH
Maximum email length.
MAX_FAILED_REQUESTS
Maximum failed requests before temporary ban.
MAX_NONCE_CACHE_SIZE
Maximum nonce cache size.
MAX_PAGE_SIZE
Maximum page size for list queries.
MAX_PARALLEL_ENCRYPTION_JOBS
Maximum parallel encryption jobs.
MAX_PASSWORD_LENGTH
Maximum password length.
MAX_PREVIEW_IMAGES
Maximum preview images per content.
MAX_PREVIEW_IMAGE_SIZE
Maximum file size for preview image (5 MB).
MAX_PROOFS_PER_PEER_PER_HOUR
Maximum proofs per peer per hour.
MAX_PROOF_SUBMISSION_RETRIES
Maximum retry attempts for proof submission.
MAX_REPUTATION
Maximum reputation score (100.0).
MAX_USERNAME_LENGTH
Maximum username length.
METRICS_COLLECTION_INTERVAL_SECS
Metrics collection interval (60 seconds).
METRICS_RETENTION_DAYS
Metrics retention period (7 days).
MIN_CONTENT_AGE_FOR_GC_SECS
Minimum content age for garbage collection (30 days in seconds).
MIN_CONTENT_PRICE
Minimum price for content (1 point).
MIN_DEMAND_MULTIPLIER
Minimum demand multiplier (0.5x).
MIN_FREE_DISK_SPACE
Minimum free disk space required (1 GB).
MIN_PASSWORD_LENGTH
Minimum password length.
MIN_REPUTATION
Minimum reputation score (0.0).
MIN_SAMPLES_FOR_STATS
Minimum samples required for statistical analysis.
MIN_SEEDER_COUNT
Minimum seeder count before unpinning.
MIN_USERNAME_LENGTH
Minimum username length.
NONCE_CACHE_TTL_SECS
Nonce cache TTL (10 minutes in seconds).
PERMANENT_BAN_THRESHOLD
Permanent ban threshold (repeated temp bans).
PLATFORM_FEE_PERCENTAGE
Platform fee percentage (10%).
PROFITABILITY_CHECK_INTERVAL_SECS
Profitability check interval (24 hours in seconds).
PROTOCOL_VERSION
Current protocol version.
REPUTATION_DECAY_RATE
Peer reputation decay rate (per day).
TEMP_BAN_DURATION_SECS
Temporary ban duration (1 hour in seconds).