From 0a0dbdf02378619b554d81e1a1e0baf5e4ccd88b Mon Sep 17 00:00:00 2001 From: iskay Date: Wed, 10 May 2023 12:17:21 +0000 Subject: [PATCH] todo generate genesis --- app/data/config/fixturenet-lotus/setup-miner.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/data/config/fixturenet-lotus/setup-miner.sh b/app/data/config/fixturenet-lotus/setup-miner.sh index 3fe0b8b6..1b818de6 100644 --- a/app/data/config/fixturenet-lotus/setup-miner.sh +++ b/app/data/config/fixturenet-lotus/setup-miner.sh @@ -5,6 +5,14 @@ lotus --version # # remove old bootnode peer info if present # [ -f /root/.lotus-shared/miner.addr ] && rm /root/.lotus-shared/miner.addr +##TODO: generate genesis files inside container instead of bundling in config dir +##something like commands below should work, other scripts/compose will have to be updated to corresponding directories +# lotus fetch-params 2048 +# lotus-seed pre-seal --sector-size 2KiB --num-sectors 2 +# lotus-seed genesis new localnet.json +# lotus-seed genesis add-miner localnet.json ~/.genesis-sectors/pre-seal-t01000.json + + # start daemon nohup lotus daemon --genesis=/devgen.car --profile=bootstrapper --bootstrap=false > /var/log/lotus.log 2>&1 &