/
openhelper3.sh
16 lines (15 loc) · 1.48 KB
/
openhelper3.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# !/bin/bash
root="/home/sudhanshu/Documents/Assignment3"
geth_root="$root""/go-ethereum/build/bin/geth"
rm -r "$root"/test-eth3/geth/chaindata/;
rm -r "$root"/test-eth3/geth/lightchaindata/;
rm -r "$root"/test-eth3/geth/nodes/;
rm -r "$root"/test-eth3/geth/ethash/;
rm "$root"/test-eth3/geth/LOCK;
rm "$root"/test-eth3/geth/transactions.rlp;
"$geth_root" --datadir "$root"/test-eth3 --rpc --rpcport=1698 --rpcapi "eth,net,web3,debug" --networkid=1748 --port=1597 --syncmode full --gcmode archive --nodiscover --nodekey nk3.txt init "$root"/genesis.json
gnome-terminal --geometry 90x25+1300+50 -- bash startIpc.sh 3
"$geth_root" --datadir "$root"/test-eth3 --rpc --rpcport=1698 --rpcapi "eth,net,web3,debug" --networkid=1748 --port=1597 --syncmode full --gcmode archive --nodiscover --nodekey nk3.txt --verbosity 5 --allow-insecure-unlock --unlock 0,1 --password password.txt
# "$root"/Assignment-go-ethereum/build/bin/geth --datadir "$root"/test-eth3 --rpc --rpcport=1698 --rpcapi "eth,net,web3,debug" --networkid=1748 --port=1597 --hashpower 50 --interarrival 2 --behavior 0 --gcmode archive --nodekey=nk2.txt init "$root"/genesis.json
# gnome-terminal --geometry 90x25+1300+50 -- bash startIpc.sh 2
# "$root"/Assignment-go-ethereum/build/bin/geth --datadir "$root"/test-eth3 --rpc --rpcport=1698 --rpcapi "eth,net,web3,debug" --networkid=1748 --port=1597 --hashpower 50 --interarrival 2 --behavior 0 --gcmode archive --nodekey=nk2.txt --verbosity 3 --allow-insecure-unlock --unlock 0,1 --password password.txt