-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
97 lines (76 loc) · 2.82 KB
/
Copy path.env.example
File metadata and controls
97 lines (76 loc) · 2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# ============================================================================
# Avian Stratum Proxy - Dual Algorithm Configuration
# ============================================================================
# Supports both X16RT (GPU) and MinotaurX (CPU) algorithms running simultaneously
# Copy this file: cp .env.example .env (or copy .env.example .env on Windows)
# ============================================================================
# Avian Configuration
AVN_RPC_USER=avian_user
AVN_RPC_PASS=change_this_secure_password
AVN_RPC_PORT=7896
AVN_P2P_PORT=7895
# Avian Build Configuration (Docker only)
AVIAN_VERSION=master
# Network Selection (mainnet or testnet)
# Data is stored separately per network, so you can switch without losing sync
NETWORK=mainnet
TESTNET=false
# Stratum Proxy Configuration - Dual Ports
STRATUM_PORT_X16RT=54321 # GPU mining (X16RT)
STRATUM_PORT_MINOTAURX=54322 # CPU mining (MinotaurX)
PROXY_SIGNATURE=/avian-stratum-proxy/
# === Static Share Difficulty (when VarDiff is disabled) ===
# GPU (X16RT) recommended: 1.0
# CPU (MinotaurX) recommended: 0.001
STATIC_SHARE_DIFFICULTY_X16RT=1.0
STATIC_SHARE_DIFFICULTY_MINOTAURX=0.001
# === Variable Difficulty (VarDiff) Settings ===
# RECOMMENDED - auto-adjusts to your hashrate
ENABLE_VARDIFF=true
# Target 15 seconds between shares
VARDIFF_TARGET_SHARE_TIME=15.0
# GPU (X16RT) difficulty bounds
VARDIFF_MIN_DIFFICULTY=0.1 # Low floor for slower GPUs
VARDIFF_MAX_DIFFICULTY=1000000.0 # For large GPU farms
VARDIFF_START_DIFFICULTY=1.0 # Start moderate, adjust quickly
# CPU (MinotaurX) difficulty bounds
VARDIFF_MIN_DIFFICULTY_CPU=0.0001 # Very low for CPUs
VARDIFF_MAX_DIFFICULTY_CPU=10.0 # CPUs are much slower
VARDIFF_START_DIFFICULTY_CPU=0.001 # Starting point for CPUs
# Responsive retargeting
VARDIFF_RETARGET_SHARES=20
VARDIFF_RETARGET_TIME=300.0
# Step size clamps
VARDIFF_UP_STEP=2.0
VARDIFF_DOWN_STEP=0.5
# EMA smoothing
VARDIFF_EMA_ALPHA=0.3
# Inactivity handling
VARDIFF_INACTIVITY_LOWER=90.0
VARDIFF_INACTIVITY_MULTIPLES=6.0
VARDIFF_INACTIVITY_DROP_FACTOR=0.5
# Persistence - separate state files per algorithm
VARDIFF_STATE_PATH_X16RT=data/vardiff_state_x16rt.json
VARDIFF_STATE_PATH_MINOTAURX=data/vardiff_state_minotaurx.json
VARDIFF_WARM_START_MINUTES=60
VARDIFF_CHAIN_HEADROOM=0.9
# ZMQ Configuration
ENABLE_ZMQ=true
AVN_ZMQ_ENDPOINT=tcp://avian:28332
AVN_ZMQ_PORT=28332
# Logging (INFO recommended for production, DEBUG for troubleshooting)
LOG_LEVEL=INFO
SHOW_JOBS=false
# Web Dashboard (optional)
ENABLE_DASHBOARD=true
DASHBOARD_PORT=8080
# Database (optional - for statistics tracking)
ENABLE_DATABASE=true
# Notifications (uncomment and configure to receive block alerts)
#DISCORD_WEBHOOK_URL=
#TELEGRAM_BOT_TOKEN=
#TELEGRAM_CHAT_ID=
# Web Dashboard
ENABLE_DASHBOARD=true
DASHBOARD_PORT=8080
ENABLE_DATABASE=true