Join the ShareLedger Mainnet
Sync Options
To quickly get started, node operators can choose to sync via State Sync or Full Sync.
State Sync works by replaying larger chunks of application state directly rather than replaying individual blocks or consensus rounds.
Full Sync works by replaying every single block from the very beginning of the blockchain.
State Sync
Setup a new node and create the system daemon service:
curl -LJ https://github.com/ShareRing/Shareledger/releases/download/v1.2.0/new_validator_v1.2.0.sh > new_validator_v1.2.0.sh
chmod +x new_validator_v1.2.0.sh
./new_validator_v1.2.0.sh
Stop the ShareLedger service:
systemctl stop shareledger
Run the State Sync script:
wget -O - https://github.com/ShareRing/Shareledger/releases/download/v1.4.1/statesync.sh | sudo bash
The process will need to run for about 5-10 minutes to catch up to the latest block. Once it has caught up to the latest block, stop the State Sync service and start ShareLedger:
systemctl stop shareledger_statesync
systemctl start shareledger
Full Sync
Setup a new node and create the system daemon service:
curl -LJ https://github.com/ShareRing/Shareledger/releases/download/v1.2.0/new_validator_v1.2.0.sh > new_validator_v1.2.0.sh
chmod +x new_validator_v1.2.0.sh
./new_validator_v1.2.0.sh
Let the blockchain run until it requires the next version update:
Update required at height | ShareLedger version | ShareLedger binary |
---|---|---|
6,905,000 | v1.3.0 | https://github.com/ShareRing/Shareledger/releases/download/v1.3.0/shareledger |
7,325,550 | v1.4.0 | https://github.com/ShareRing/Shareledger/releases/download/v1.4.0/shareledger |
7,507,600 | v1.4.1 | https://github.com/ShareRing/Shareledger/releases/download/v1.4.1/shareledger |
When the blockchain reaches a certain update height, replace the current binary with that specific binary:
systemctl stop shareledger
curl -LJ [shareledger-binary-url] > /usr/bin/shareledger
chmod +x /usr/bin/shareledger
systemctl start shareledger