Skip to content

scott-ftf/lightwalletd_status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pirate Chain Light Wallet Server Status Tool

Use this script to validate the status of the Pirate Chain light wallet servers. It checks that the domain names are resolvable, tests the server ping time, ensures it can get a valid gRPC response, and checks the current block height is similar between servers.

  1. Install dependencies (Requires Python 3)
pip3 install tabulate grpcio-tool
  1. clone into this repo:
git clone https://github.com/scott-ftf/lightwalletd_status.git
cd lightwalletd_status
  1. Make any changes to the configuration settings, then run the script:
python3 lightwalletd_status.py

(OPTIONAL) Manually Create Protocol Buffer definition files

These files are already included in the lib library, but to generate the Protocol Buffer definition files manually, follow these steps:

  1. Install the protobuf compiler (specific to Ubuntu or Debian-based systems):
sudo apt install protobuf-compiler
  1. Install the protobuf package:
pip3 install protobuf==3.20
  1. Clone the lightwalletd repository:
git clone https://github.com/PirateNetwork/lightwalletd.git
  1. Generate the Python proto definitions:
cd lightwalletd/walletrpc
python3 -m grpc_tools.protoc --proto_path=. --python_out=. --grpc_python_out=. service.proto
python3 -m grpc_tools.protoc --proto_path=. --python_out=. --grpc_python_out=. compact_formats.proto
  1. Move the newly generated service_pb2.py, service_pb2_grpc.py, compact_formats_pb2.py, and compact_formats_pb2_grpc.py files to the same directory as the main script.

About

Check Pirate Chain Lightwalletd server status

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages