Everstake Home
Products Solutions Security Resources Developers Company
Home
BLOG
How To Implement The ICON Switchover Solution
Everstake presentation template

Company News

How To Implement The ICON Switchover Solution

In order to mitigate all risks associated with high downtime of your ICON P-Rep node once a server failure occurs, you can back yourself up

MAY 21, 2020

In order to mitigate all risks associated with high downtime of your ICON P-Rep node once a server failure occurs, you can back yourself up with the switchover solution. If you want to implement this you need to have a backup server with a preconfigured ICON node. 

In the situation when your server fails, you need to have fast and easy migration from the one that is not operating to another server, so that you can continue producing blocks with minimum downtime.

💡 Always keep an eye on your main ICON node and determine if there is a problem. This script can help you to monitor the status of the ICON node and notify the Telegram channel if the node stops syncing or goes down.

Configuration

The ICON switchover solution takes no time to setup.

First of all, you need to have a backup server. Install and launch the ICON node with a different keystore on the backup server. Add the main P-Rep keystore as a comment in the docker-compose.yml. It should the following way:

PRIVATE_KEY_FILENAME: “SOME_KEYSTORE”

PRIVATE_PASSWORD: “SOME_KEY_PASSWORD”

#PRIVATE_KEY_FILENAME: “MAIN_P-Rep_KEYSTORE”

#PRIVATE_PASSWORD: “MAIN_P-Rep_PASSWORD”

Then install P-Rep Tools.

Install dependencies

$ sudo apt-get install -y libssl-dev build-essential automake pkg-config libtool libffi-dev libgmp-dev libyaml-cpp-dev

$ sudo apt-get install -y python3.7-dev libsecp256k1-dev python3-pip python3-venv

Create a virtualenv environment

$ python -m venv venv

$ source venv/bin/activate

Install

(venv)$ git clone https://github.com/icon-project/preptools.git

(venv)$ cd preptools

(venv)$ ./build.sh

(venv)$ ls dist

preptools-1.0.2-py3-none-any.whl

(venv) $ pip install dist/preptools-1.0.2-py3-none-any.whl

(venv) $ pip install preptools

Finally, prepare a simple script to change p2pEndpoint in P-Rep information

$ vim switch.sh

“`

#!/bin/bash

VENV_DIR=”/path/to/virtual/environment/directory”

KEYSTORE=”/path/to/main/keystore/file”

BACKUP_SERVER_P2P=”1.1.1.1:7100″

URL=”https://ctz.solidwallet.io/api/v3” # Mainnet public node URL

source $VENV_DIR/venv/bin/activate

preptools setPRep — p2p-endpoint $BACKUP_SERVER_P2P -k $KEYSTORE — nid 1 — url $URL

“`

$ chmod +x switch.sh

Switch to the backup server

If your main ICON node or server goes down, you can manually initiate the switch to the backup server by going through the following steps:

  1. Uncomment the main keystore in the docker-compose.yml on the backup server

$ vim docker-compose.yml

“`

#PRIVATE_KEY_FILENAME: “SOME_KEYSTORE”

#PRIVATE_PASSWORD: “SOME_KEY_PASSWORD”

PRIVATE_KEY_FILENAME: “MAIN_P-Rep_KEYSTORE”

PRIVATE_PASSWORD: “MAIN_P-Rep_PASSWORD”

“`

2. Restart the backup ICON node

$ docker-compose down && docker-compose up -d

3. Change p2p Endpoint in P-Rep information

$ ./switch.sh

💡 You need to enter the password for the main keystore file after this command

We’ve successfully created the switchover solution for the ICON node. Next time if your main ICON node or server goes down, you can quickly switch from one server to another, allowing a smooth continuation of block production. Now, you can fix the problem with the main node once you have time, while the second node will back you up during maintenance.

* * * * *

Everstake is one of the ICON P-reps! Please support us with your vote!

Every single vote matters for us, allowing us to continue developing tools for ICON blockchain and supporting the East European community. If you have any questions, feel free to reach out to our ICON Blockchain Manager on Twitter.

Staking with ICONex Web Wallet

Staking with ICONex Mobile Wallet

Staking with Ledger

How to get ICX rewards

ICON FAQ

Share with your network

Everstake

Content Manager

Everstake is the leading non-custodial staking provider, delivering audited, globally distributed infrastructure aligned with SOC 2 Type II, ISO 27001, and NIST CSF 2.0 for institutional and retail clients.

Related Articles

2031

Company News

Everstake Partners with Canary Capital to Power Staking in the Newly Launched Nasdaq-Listed SUI ETF

Everstake, the leading global non-custodial staking provider, has entered a partnership with Canary Capital, a digital asset investment management firm. Together, the companies will power the staking capabilities of the newly launched SUIS, a SUI ETF, now officially listed on Nasdaq. This groundbreaking exchange-traded fund represents a major leap forward for institutional digital asset adoption,...

FEB 20, 2026

Everstake and Cometh Launch Fiat-to-Staking Solution for EU Institutions Under MiCA

Company News

Everstake and Cometh Launch Fiat-to-Staking Solution for EU Institutions Under MiCA

This partnership simplifies institutional access to staking under MiCA, bridging traditional banking infrastructure with compliant, crypto-native rewards.

JAN 07, 2026

2025 marked a shift for Everstake toward full infrastructure leadership, combining audited systems, institutional partnerships, and ecosystem responsibility.

Company News

The Year Everstake Stepped Into Full Infrastructure Leadership

2025 marked a shift for Everstake toward full infrastructure leadership, combining audited systems, institutional partnerships, and ecosystem responsibility.

DEC 24, 2025

Disclaimer

Everstake, Inc. or any of its affiliates is a software platform that provides infrastructure tools and resources for users but does not offer investment advice or investment opportunities, manage funds, facilitate collective investment schemes, provide financial services or take custody of, or otherwise hold or manage, customer assets. Everstake, Inc. or any of its affiliates does not conduct any independent diligence on or substantive review of any blockchain asset, digital currency, cryptocurrency or associated funds. Everstake, Inc. or any of its affiliates’s provision of technology services allowing a user to stake digital assets is not an endorsement or a recommendation of any digital assets by it. Users are fully and solely responsible for evaluating whether to stake digital assets.

Sign Up for
Our Newsletter

By submitting this form, you are acknowledging that you have read and agree to our Privacy Notice, which details how we collect and use your information.

PRODUCTS

Institutional StakingYield InfrastructureVaaSSWQOSShredStream

Everstake Validation Services LLC

Hermes Corporate Services Ltd., Fifth Floor, Zephyr House

122 Mary Street, George Town, P.O. Box 31493

Grand Cayman KY1-1206, Cayman Islands

Privacy NoticeTerms of UseCookie Policy

Everstake is a software platform that provides infrastructure tools and resources for users but does not offer investment advice or investment opportunities, manage funds, facilitate collective investment schemes, provide financial services or take custody of, or otherwise hold or manage, customer assets. Everstake does not conduct any independent diligence on or substantive review of any blockchain asset, digital currency, cryptocurrency or associated funds. Everstake’s provision of technology services allowing a user to stake digital assets is not an endorsement or a recommendation of any digital assets by it. Users are fully and solely responsible for evaluating whether to stake digital assets. All metrics displayed on the website, including without limitations value of staked assets, total number of active users, rewards rates, and networks supported, are historical figures and may not represent the actual real-time data.

Copyright © 2026 Everstake