From 5b550f3245534a53ebdecfb8888b0a536b21e92f Mon Sep 17 00:00:00 2001 From: Davide Grilli Date: Fri, 28 Nov 2025 13:49:04 +0100 Subject: [PATCH] Clear inherited checkpoints and update to mainnet config Remove inherited Bitcoin checkpoints from Palladium coin definition to prevent validation issues. --- Dockerfile | 3 +++ docker-compose.yml | 4 ++-- electrumx-patch/coins_plm.py | 4 ++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index eb87490..509e70c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,9 @@ class Palladium(Bitcoin): # Genesis hash (Bitcoin mainnet) GENESIS_HASH = "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f" + # Clear inherited checkpoints + CHECKPOINTS = [] + # Network statistics (required by ElectrumX) TX_COUNT = 1000 TX_COUNT_HEIGHT = 1 diff --git a/docker-compose.yml b/docker-compose.yml index ae38598..c81b653 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,11 +15,11 @@ services: # 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 + NET: "mainnet" # Palladium Core RPC connection # MAINNET: port 2332 | TESTNET: port 12332 - DAEMON_URL: "http://rpcuser:rpcpassword@host.docker.internal:12332/" # RPC credentials + DAEMON_URL: "http://:@host.docker.internal:2332/" # RPC credentials SERVICES: "tcp://0.0.0.0:50001,ssl://0.0.0.0:50002" diff --git a/electrumx-patch/coins_plm.py b/electrumx-patch/coins_plm.py index 4d8459f..9afd513 100644 --- a/electrumx-patch/coins_plm.py +++ b/electrumx-patch/coins_plm.py @@ -17,6 +17,10 @@ class Palladium(Bitcoin): # === Genesis hash (Bitcoin mainnet) === GENESIS_HASH = "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f" + # === Checkpoints === + # Since we share Genesis with Bitcoin, we must clear inherited checkpoints + CHECKPOINTS = [] + # === Default ports === RPC_PORT = 2332 PEER_DEFAULT_PORTS = {'t': '2333', 's': '52333'}