Skip to content

Checks the status, recovers, switches your shift-lisk nodes. Use it not to miss a single block :)

License

Notifications You must be signed in to change notification settings

0D1NTR33/shift-checker

 
 

Repository files navigation

shift-checker

Current version: 2.2.2

Screenshot

VPS logs

Description

This script:

  • Turns on shift-lisk node if it's suddenly turned off
  • Checks if a node is forked
  • Recovers a node from a snapshot or with shift_manager if something went wrong
  • Switches the forging between your main and backup nodes, improving the reliability of your delegate
  • Manages shift-lisk node via command line options
  • Notifies in Telegram if something goes wrong

How to update to v 2.2.2

The better way is:

  • save data from your old config.php file
  • delete the old folder cd && sudo rm -rf shift-checker
  • download the new version of the script git clone https://github.com/MxShift/shift-checker.git
  • change settings inside config.example.php file
  • rename config.example.php file to config.php

Or you could just open the shift-checker directory and run git fetch:

cd shift-checker
git fetch
git reset --hard origin/master

Then change settings inside config.example.php and rename it to config.php.

Also delete an old db.json file.

To check if all settings are correct run:

php test.php

Installation

Command line options

You could manage your shift-lisk node with shift-checker:

cd shift-checker
php run.php status              to check status of a shift-lisk node
php run.php stop                to stop a shift-lisk node
php run.php start               to start a shift-lisk node
php run.php reload              to reload a shift-lisk node
php run.php rebuild             to rebuild a shift-lisk node from an official snapshot
php run.php update              to run full update of a shift-lisk node
php run.php update_manager      to update a shift-lisk node manager
php run.php update_client       to update a shift-lisk node
php run.php update_wallet       to update a shift-lisk node wallet
php run.php create              to create a snapshot of the blockchain
php run.php restore             to restore height of a shift-lisk node from the last created snapshot

In the next updates:

  • Requesting status of nodes from Telegram bot;
  • Merge with shift-monitor;

Donations

  • Please consider voting for Mx

Thank you 🎉

Contacts

  • Telegram: Mx
  • Discord: Mx

Contributors

Jan - first version of the script BTC:1GbAWBiGyuybXJcjtyTvtH6hB5iezXNVdP
Seatrips - helps to Jan
Mrgr - first version of shift-snapshot

About

Checks the status, recovers, switches your shift-lisk nodes. Use it not to miss a single block :)

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • PHP 100.0%