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.11.tar.gz (6.1 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: undmainchain-0.0.11.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.11.tar.gz
Algorithm Hash digest
SHA256 dde0a6513e0abf0d7db16d243cca2d6b397773e8077768855b1b6b73481817e8
MD5 fc82f066a13e126e44ecf0158e07ff0a
BLAKE2b-256 bf3d0f1ddcad270be5dc9f7f3b261958b472c781af7eb788dcba9255d57d0ff8

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