lotus/curiosrc/docker/lotus-miner/entrypoint.sh
LexLuthr ebf1e00846
feat: curio: docker devnet (#11954)
* curio docker devnet

* fix UI, improve init, compose

* fix TreeRC

* bump FFI
2024-05-07 17:20:00 +02:00

17 lines
580 B
Bash
Executable File

#!/usr/bin/env bash
set -e
echo Wait for lotus is ready ...
lotus wait-api
echo Lotus ready. Lets go
if [ ! -f $LOTUS_MINER_PATH/.init.miner ]; then
echo Import the genesis miner key ...
lotus wallet import --as-default $GENESIS_PATH/pre-seal-t01000.key
echo Set up the genesis miner ...
lotus-miner init --genesis-miner --actor=t01000 --sector-size=$SECTOR_SIZE --pre-sealed-sectors=$GENESIS_PATH --pre-sealed-metadata=$GENESIS_PATH/pre-seal-t01000.json --nosync
touch $LOTUS_MINER_PATH/.init.miner
echo Done
fi
echo Starting lotus miner ...
exec lotus-miner run --nosync