forked from DecentralCardGame/Cardchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-run.sh
More file actions
executable file
·19 lines (15 loc) · 850 Bytes
/
Copy pathdocker-run.sh
File metadata and controls
executable file
·19 lines (15 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# TODO
if false && test -f "/var/blockchain/exported_genesis.json"; then
echo -e "'\033[0;31m' exported_genesis.json found - reloading from there'\033[0m'"
mkdir ~/.ignite/local-chains/Cardchain
cp /var/blockchain/exported_genesis.json ~/.ignite/local-chains/Cardchain/exported_genesis.json
cp /var/blockchain/binary_checksum.txt ~/.ignite/local-chains/Cardchain/
cp /var/blockchain/config_checksum.txt ~/.ignite/local-chains/Cardchain/
cp /var/blockchain/source_checksum.txt ~/.ignite/local-chains/Cardchain/
fi
# empty blocks would be nice, but this doesn't start the faucet
#Cardchaind start --consensus.create_empty_blocks false
./ignite chain serve
# the following line is evaluated if csd is terminated via pkill (docker-stop-and-export.sh)
Cardchaind export > ~/.ignite/local-chains/Cardchain/exported_genesis.json