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 7 additions and 3 deletions
Showing only changes of commit 03ee080dfe - Show all commits

View File

@ -11,6 +11,7 @@ services:
AUTHORITY_AUCTION_ENABLED: ${AUTHORITY_AUCTION_ENABLED} AUTHORITY_AUCTION_ENABLED: ${AUTHORITY_AUCTION_ENABLED}
AUTHORITY_AUCTION_COMMITS_DURATION: ${AUTHORITY_AUCTION_COMMITS_DURATION} AUTHORITY_AUCTION_COMMITS_DURATION: ${AUTHORITY_AUCTION_COMMITS_DURATION}
AUTHORITY_AUCTION_REVEALS_DURATION: ${AUTHORITY_AUCTION_REVEALS_DURATION} AUTHORITY_AUCTION_REVEALS_DURATION: ${AUTHORITY_AUCTION_REVEALS_DURATION}
AUTHORITY_GRACE_PERIOD: ${AUTHORITY_GRACE_PERIOD}
GENESIS_FILE: /var/tmp/genesis.json GENESIS_FILE: /var/tmp/genesis.json
volumes: volumes:
- laconicd-data:/root/.laconicd - laconicd-data:/root/.laconicd

View File

@ -103,13 +103,16 @@ Instructions for running a laconicd fixturenet along with registry CLI and conso
STAKING_AMOUNT= STAKING_AMOUNT=
# Enable authority auctions (default: false) # Enable authority auctions (default: false)
AUTHORITY_AUCTION_ENABLED= AUTHORITY_AUCTION_ENABLED=true
# Authority auctions commits duration (in secs) (default: 24hrs) # Authority auctions commits duration (in secs) (default: 24hrs)
AUTHORITY_AUCTION_COMMITS_DURATION= AUTHORITY_AUCTION_COMMITS_DURATION=3600
# Authority auctions reveals duration (in secs) (default: 24hrs) # Authority auctions reveals duration (in secs) (default: 24hrs)
AUTHORITY_AUCTION_REVEALS_DURATION= AUTHORITY_AUCTION_REVEALS_DURATION=3600
# Authority grace period (set bond to authority within this) (in secs) (default: 2 * 24hrs)
AUTHORITY_GRACE_PERIOD=7200
``` ```
* 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: