Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
chore: update cmds to start bor
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Nov 30, 2023
1 parent 008d50e commit 80aa4e9
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions test-blockchain/start.sh.template
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
#!/usr/bin/env sh
set -xe

BOR=bor
DIR=$PWD
mkdir data

mkdir $DIR/data
$BOR --datadir $DIR/data init $DIR/genesis.json
cp -rf $DIR/keystore $DIR/data/

$BOR --datadir $DIR/data \
bor server \
--dev \
--datadir data \
--port 30342 \
--http --http.addr '0.0.0.0' \
--http.vhosts '*' \
--http.corsdomain '*' \
--http.port 8545 \
--ipcpath $DIR/geth.ipc \
--http.api 'personal,db,eth,net,web3,txpool,miner,admin,bor' \
--syncmode 'full' \
--networkid '{{ borChainId }}' \
--http.api 'eth,net,web3,txpool' \
--ipcpath bor.ipc \
--keystore keystore \
--unlock '0x96C42C56fdb78294F96B0cFa33c92bed7D75F96a,0x9fb29aac15b9a4b7f17c3385939b007540f4d791' \
--password $DIR/password.txt \
--password password.txt \
--allow-insecure-unlock \
--miner.gastarget '20000000' \
--miner.gaslimit '20000000' \
--bor.withoutheimdall \
--mine
--maxpeers 200 \
--mine \
--miner.gasprice 20000000 \
--miner.gaslimit 20000000 \
--miner.etherbase 0x9fb29aac15b9a4b7f17c3385939b007540f4d791 \
--bor.withoutheimdall

0 comments on commit 80aa4e9

Please sign in to comment.