-
Notifications
You must be signed in to change notification settings - Fork 1
/
hard_start.sh
executable file
·36 lines (33 loc) · 996 Bytes
/
hard_start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
DATADIR="./blockchain"
if [ ! -d $DATADIR ]; then
mkdir -p $DATADIR;
fi
. ./keys.conf
echo $NAME
nodeos \
--signature-provider $PUBKEY=KEY:$PRIVKEY \
--plugin eosio::producer_plugin \
--plugin eosio::chain_api_plugin \
--plugin eosio::http_plugin \
--plugin eosio::history_api_plugin \
--data-dir $DATADIR"/data" \
--blocks-dir $DATADIR"/blocks" \
--config-dir $DATADIR"/config" \
--producer-name $NAME \
--http-server-address 0.0.0.0:8888 \
--p2p-listen-endpoint 0.0.0.0:9010 \
--access-control-allow-origin=* \
--contracts-console \
--http-validate-host=false \
--verbose-http-errors \
--enable-stale-production \
--max-transaction-time 50 \
--p2p-peer-address 54.39.23.130:9010 \
--p2p-peer-address 192.99.154.55:9010 \
--p2p-peer-address 51.38.70.208:9010 \
--hard-replay \
--chain-state-db-size-mb 4096 \
>> $DATADIR"/nodeos.log" 2>&1 & \
echo $! > $DATADIR"/eosd.pid"
echo "Press cntrl-c to stop watching the log, you can view it later with tail -f blockchain/nodeos.log"