Skip to content

xdbchain/xdb-config-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XDB CHAIN Config Generator

This generator was created to simplify config generation for large amounts of quorum sets

The generator relies on the config.json file, containing the structure of the XDB CHAIN Quorum Sets, to be present in the project root.

Params

The generator expects 9 parameters to be provided through CLI arguments:

"node_home_domain": a home domain to which the node is belong to,
"node_seed": a secret seed of the node,
"node_name": name of the node,
"db_name": name of a database,
"db_user": database user,
"db_password": database password,
"db_host": database host,
"history_get": how to get the history of the node,
"history_put": how to put the history of the node

Exactly in that ^ order.

Usage example

cd xdb-config-generator
wget https://livenet.xdbchain.com/config.json
pip install -r requirements.txt

python generator.py livenet.example.com SAZLJGZ4GAVWNSU44R3SFD4NAZMZEVTS375USHGNJMGSWV7JRHALZDEF my_node_1 db_name my_user secret_password localhost:5432 "curl -sf https://history.livenet.example.com/livenet/my_node_1/{0} -o {1}" "aws s3 cp {0} s3://my_history_bucket/livenet/my_node_1/{1}" > /etc/xdbchain.cfg

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published