OSDN Git Service

modify side_chain_tool
[bytom/vapor.git] / tools / side_chain_tool / sidechain.sh
index 1000998..87c7bba 100644 (file)
@@ -2,7 +2,7 @@
 
 if [ ! -f "key_pair" ];then
 ./vapor init --chain_id solonet -r "side_chain"
-nohup ./vapor node -r "side_chain" > /dev/null &
+nohup ./vapor node -r "side_chain" --consensus_config_file consensus.json > /dev/null &
 sleep 30
 curl -s -X POST -d '{}' http://127.0.0.1:8888/create-key-pair >> key_pair
 ps -ef | grep vapor | grep -v grep | awk  '{print $2}' |xargs  kill -9
@@ -19,7 +19,7 @@ nohup ./bytomd node -r "main_chain" --auth.disable > /dev/null &
 sleep 50
 
 ./vapor init --chain_id solonet -r "side_chain"
-nohup ./vapor node -r "side_chain" --auth.disable --side.fedpeg_xpubs $xpub  --side.sign_block_xpubs $xpub --signer $xprv --validate_pegin true --side.parent_genesis_block_hash "a97a7a59e0e313f9300a2d7296336303889930bfdf5a80d8a9b05db343c03380" > /dev/null &
+nohup ./vapor node -r "side_chain" --auth.disable --side.fedpeg_xpubs $xpub --consensus_config_file consensus.json  --validate_pegin true --side.parent_genesis_block_hash "a97a7a59e0e313f9300a2d7296336303889930bfdf5a80d8a9b05db343c03380" > /dev/null &
 sleep 30
 virtualenv --no-site-packages venv
 source venv/bin/activate
@@ -31,7 +31,7 @@ python manager.py db upgrade
 touch install
 fi
 
-nohup python manager.py runserver -p 8000 -h 0.0.0.0 > /dev/null &
+nohup python manager.py runserver -p 8080 -h 0.0.0.0 > /dev/null &
 sleep 30
-cd web
-nohup python -m SimpleHTTPServer 8080 > /dev/null &
+#cd web
+#nohup python -m SimpleHTTPServer 8080 > /dev/null &