Skip to main content

Helper tools for administering the Unification Mainchain

Project description

Unification Mainnet Helpers

Miscellaneous tools to help support the maintenance of Unification Mainnet EVs can be found here.

Defaults

Due to the complexity of the beast, these tools will only work with our standard environments. This library also only currently supports Linux. There is some room for differences that the codebase can be modified to handle.

To view what the expected defaults are:

python -m undmainchain.cli.defaults show

All the helpers take a --machine option that loads custom values. These values are defined in the undmainchain.const module.

Reset All

This command will wipe all your chain data, use the latest published und versions and genesis. Whilst it may take much time to catch up, this is a good fresh slate if needed.

python -m undmainchain.cli.upgrade revert

Install a specific version

python -m undmainchain.cli.upgrade binaries 1.4.1

Export to S3

Genesis Export

The export helper will stop the EV, export the chain data to a JSON file and upload it to Amazon S3, and start the EV again.

python -m undmainchain.cli.export genesis <HEIGHT> <AWSKEY> <AWSSECRET>

Chain Export

The entire chain can be compressed and exported to S3. Warning: chains can be large and uploading to S3 can incur cost.

python -m undmainchain.cli.export chain <AWSKEY> <AWSSECRET>

Network upgrades

There is also a helper that support network upgrades

python -m undmainchain.cli.upgrade genesis 700000

The helper will wait until the specified block and then perform an upgrade.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

undmainchain-0.0.12.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file undmainchain-0.0.12.tar.gz.

File metadata

  • Download URL: undmainchain-0.0.12.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.2

File hashes

Hashes for undmainchain-0.0.12.tar.gz
Algorithm Hash digest
SHA256 46a66ffbb80bf6337e9c3a246a7550f7c7d33d56b2eb373e86a1c7f97cb10d5d
MD5 ce611ebe078bf232b9017030fd8fa953
BLAKE2b-256 2228ffed5f0e1667df502faebcccbca6b4b84d36e4c635af06eba6388d415c74

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page