This commit implements full support for both Palladium mainnet and testnet networks in ElectrumX, allowing users to switch between them via configuration. Changes: - Dockerfile: Fixed coin class registration by adding Palladium classes directly to coins.py instead of using external imports (avoids circular dependency). Both /usr/local/lib and /electrumx/src files are patched. Added required TX_COUNT, TX_COUNT_HEIGHT, TX_PER_BLOCK attributes. - README.md: Updated with comprehensive network support documentation including network comparison table, step-by-step switching instructions, testnet-specific information, and corrected COIN/NET usage. - docker-compose.yml: Configured for testnet with proper COIN and NET environment variables. Added clear comments for mainnet/testnet switching. Network Configuration: - Mainnet: COIN="Palladium" NET="mainnet" port 2332 - Testnet: COIN="Palladium" NET="testnet" port 12332 (Note: COIN value is always "Palladium" for both networks) Tested successfully with Palladium testnet node - synced 6,576 blocks and serving on TCP:50001 and SSL:50002. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
services:
|
|
electrumx:
|
|
image: electrumx-plm:local
|
|
container_name: electrumx-plm
|
|
restart: unless-stopped
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
ports:
|
|
- "50001:50001" # TCP
|
|
- "50002:50002" # SSL
|
|
|
|
environment:
|
|
# ===== Network Configuration =====
|
|
# For MAINNET use: COIN: "Palladium", NET: "mainnet" and DAEMON_URL port 2332
|
|
# For TESTNET use: COIN: "Palladium", NET: "testnet" and DAEMON_URL port 12332
|
|
|
|
COIN: "Palladium" # Always "Palladium" for both networks
|
|
NET: "testnet" # Change to "mainnet" for mainnet
|
|
|
|
# Palladium Core RPC connection
|
|
# MAINNET: port 2332 | TESTNET: port 12332
|
|
DAEMON_URL: "http://rpcuser:rpcpassword@host.docker.internal:12332/" # RPC credentials
|
|
|
|
SERVICES: "tcp://0.0.0.0:50001,ssl://0.0.0.0:50002"
|
|
|
|
SSL_CERTFILE: "/certs/server.crt"
|
|
SSL_KEYFILE: "/certs/server.key"
|
|
|
|
DB_DIRECTORY: "/data"
|
|
PEER_DISCOVERY: "off"
|
|
PEER_ANNOUNCE: "false"
|
|
INITIAL_CONCURRENT: "2"
|
|
COST_SOFT_LIMIT: "0"
|
|
COST_HARD_LIMIT: "0"
|
|
|
|
ulimits:
|
|
nofile:
|
|
soft: 1048576
|
|
hard: 1048576
|
|
|
|
volumes:
|
|
- ./data:/data |