forked from HKEOS/Ghostbusters-Testnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
params.sh
97 lines (74 loc) · 2.78 KB
/
params.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/bin/bash
##########################################
## Created by
## Bohdan Kossak, CryptoLions.io
##
## Edited for Ghostbusters Testnet by
## Igor Lins e Silva, EOS Rio
## Jae Chung, HKEOS
##########################################
TAG="mainnet-1.0.5";
EOS_TARGET_VERSION="3674411875";
TESTNET="ghostbusters";
##### REQUIRED PARAMETERS TO BE MODIFIED ######
# EOS Source code folder, if left completely blank - it will create the folder, download sources and compile on the specified tag
EOS_SOURCE_DIR="/path/to/eos"
# Set port numbers for everything on the BP
API_PORT=""
EOS_P2P_PORT=""
WIREGUARD_PORT=""
WALLET_PORT="7777"
# Set your keybase username here
KEYBASE_USER="<your-keybase-username>"
# Enter your EOS BP Info - you can generate keys using # cleos create key
EOS_PUBLIC_KEY=""
EOS_PRODUCER_NAME=""
#This should be the public IP for your BP for the interface tied to wireguard (if you have NAT, pls provide WAN IP and open UDP to your Wiregaurd port)
NODE_PUBLIC_IP="xxx.xxx.xxx.xxx"
### Node Agent Name - can match the BP name or be something else
AGENT_NAME="<agent-name>"
## WIREGUARD INFO
# must be in the 192.168.100.1/22 subnet
# to view available IPs please check the directory use this command # ls ~/kbfs/team/eos_ghostbusters/ip_list
# once you have chosen an IP - please run # touch ~/kbfs/team/eos_ghostbusters/ip_list/192.168.10Y.X@producername
WIREGUARD_PRIVATE_IP="192.168.10Y.X"
##### OPTIONAL SECTION ######
# HTTPS Settings - Leave port blank to disable
NODE_SSL_PORT=""
SSL_PRIV_KEY="/path/to/certificate-key"
SSL_CERT_FILE="/path/to/certificate-chain"
### Peer Credentials (if blank will be equal to the producer keys)
PEER_PUB_KEY=""
PEER_PRIV_KEY=""
### IS A BLOCK PRODUCER ? ###
ISBP=true
### PRE-DEFINED PEER LIST ###
PEER_LIST='
# p2p-peer-address = 192.168.10.Y:9876
# p2p-peer-address = <vpn-ip-address>:<p2p-port>
'
### PRE-DEFINED PEER KEYS ###
PEER_KEYS='
# peer-key = "EOS4tiVonwbmT6w5jZjxaWx8p1CkejsBtcwtn6YaqZRteKyYGQZAE"
# peer-key = "<EOS-public-key>"
'
## THIS WILL AUTOFILL FROM ABOVE
# Node port definitions (avoid ports below 1024 - you shouldn't run as root)
NODE_API_PORT="$API_PORT"
NODE_P2P_PORT="$EOS_P2P_PORT"
# Network address (Wireguard private IP)
NODE_NET_ADDR="$WIREGUARD_PRIVATE_IP"
# VPN node address (Wireguard private IP)
NODE_HOST="$WIREGUARD_PRIVATE_IP"
### PRODUCER INFO ###
PRODUCER_PUB_KEY="$EOS_PUBLIC_KEY"
# Leave blank to fill in via script later
PRODUCER_PRIV_KEY="";
# PRODUCER NAME MUST HAVE 12 CHARS EXACTLY!
PRODUCER_NAME="$EOS_PRODUCER_NAME"
### STANDARD BLOCK PRODUCER INFO - according to https://github.com/eosrio/bp-info-standard
### Replace username with your keybase username
PRODUCER_URL="https://$KEYBASE_USER.keybase.pub/bp_info.json"
### WALLET INFO - should remain localhost ###
WALLET_HOST="127.0.0.1"
WALLET_PORT="$WALLET_PORT"