Add a script to generate genesis file using given allocation amounts #10

Merged
nabarun merged 6 commits from pm-update-genesis-gen into main 2024-08-08 07:44:19 +00:00
2 changed files with 12 additions and 0 deletions
Showing only changes of commit 0e0d5be2b0 - Show all commits

View File

@ -8,6 +8,9 @@ services:
TEST_REGISTRY_EXPIRY: ${TEST_REGISTRY_EXPIRY:-false} TEST_REGISTRY_EXPIRY: ${TEST_REGISTRY_EXPIRY:-false}
ONBOARDING_ENABLED: ${ONBOARDING_ENABLED:-false} ONBOARDING_ENABLED: ${ONBOARDING_ENABLED:-false}
STAKING_AMOUNT: ${STAKING_AMOUNT:-1000000000000000} STAKING_AMOUNT: ${STAKING_AMOUNT:-1000000000000000}
AUTHORITY_AUCTION_ENABLED: ${AUTHORITY_AUCTION_ENABLED}
AUTHORITY_AUCTION_COMMITS_DURATION: ${AUTHORITY_AUCTION_COMMITS_DURATION}
AUTHORITY_AUCTION_REVEALS_DURATION: ${AUTHORITY_AUCTION_REVEALS_DURATION}
GENESIS_FILE: /var/tmp/genesis.json GENESIS_FILE: /var/tmp/genesis.json
volumes: volumes:
- laconicd-data:/root/.laconicd - laconicd-data:/root/.laconicd

View File

@ -101,6 +101,15 @@ Instructions for running a laconicd fixturenet along with registry CLI and conso
# Staking amount to use for the default validator account (default: 1000000000000000) # Staking amount to use for the default validator account (default: 1000000000000000)
STAKING_AMOUNT= STAKING_AMOUNT=
# Enable authority auctions (default: false)
AUTHORITY_AUCTION_ENABLED=
# Authority auctions commits duration (in secs) (default: 24hrs)
AUTHORITY_AUCTION_COMMITS_DURATION=
# Authority auctions reveals duration (in secs) (default: 24hrs)
AUTHORITY_AUCTION_REVEALS_DURATION=
``` ```
* Inside the `laconic-console-deployment` deployment directory, open `config.env` file and set following env variables: * Inside the `laconic-console-deployment` deployment directory, open `config.env` file and set following env variables: