From 80aa4e947a73c0a6dd8601753463924b69d5b4e3 Mon Sep 17 00:00:00 2001 From: leovct Date: Thu, 30 Nov 2023 18:59:49 +0100 Subject: [PATCH] chore: update cmds to start bor --- test-blockchain/start.sh.template | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/test-blockchain/start.sh.template b/test-blockchain/start.sh.template index 626a01ec..f3ce02e6 100755 --- a/test-blockchain/start.sh.template +++ b/test-blockchain/start.sh.template @@ -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