Skip to content

Commit e6d6075

Browse files
committed
Added more incomplete descriptions of the steps to create the validator.
1 parent 18f3ee7 commit e6d6075

File tree

2 files changed

+49
-6
lines changed

2 files changed

+49
-6
lines changed

terra/README.md

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,56 @@ The daemon can now be started to run through the blocks.
127127

128128
terrad start
129129

130-
# For a replacement server
130+
# Client
131+
132+
## Create the keys
133+
134+
This usually just needs to be done the first time the validator is being set up.
135+
136+
terracli keys add <keyName>
131137

132138
## Configure the client
133139

134-
terracli config chain-id columbus-4
140+
```
135141
terracli config node tcp://localhost:26657
136142
terracli config trust-node true
143+
```
144+
145+
Run just one of the following commands:
146+
147+
```
148+
terracli config chain-id columbus-4 # Mainnet
149+
terracli config chain-id tequila-0004 # Testnet
150+
```
137151

138-
## Set the minimum gas prices
139152
## Create the validator
140153

154+
```
155+
terracli tx oracle set-feeder terra139ycju27xcek7n2ulew308p28pdh6a6mdqac5a --from=terra1rjmzlljxwu2qh6g2sm9uldmtg0kj4qgyy27m6x --fees 33954000ukrw
156+
```
157+
158+
The
159+
160+
## Configure the oracle feeder
161+
162+
terracli tx oracle set-feeder terra139ycju27xcek7n2ulew308p28pdh6a6mdqac5a --from=terra1rjmzlljxwu2qh6g2sm9uldmtg0kj4qgyy27m6x --fees 33954000ukrw
163+
164+
```
165+
cd $FEEDER_PATH
166+
npm start update-key
167+
```
168+
169+
Requires the mnemonic.
170+
171+
This creates a file voter.json
172+
173+
cd /home/terrau/oracle-feeder/feeder
174+
/usr/local/bin/npm start vote --\
175+
--source http://localhost:8532/latest \
176+
--lcd https://lcd.terra.dev \
177+
--chain-id "${CHAIN_ID}" \
178+
--denoms sdr,krw,usd,mnt,eur,cny,jpy,gbp,inr,cad,chf,hkd,aud,sgd,thb \
179+
--validator "${VALIDATOR_KEY}" \
180+
--password "${ORACLE_PASS}" \
181+
--gas-prices 169.77ukrw
182+

terra/configure.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
# Run the terrad service
44
echo -n "Installing terrad..."
5-
cp sample/terrad.service /etc/systemd/system/
5+
sudo cp sample/terrad.service /etc/systemd/system/
66
echo " done"
77

88
echo -n "Installing Price Server..."
99
PRICE_SERVER_PATH=/home/terrau/oracle-feeder/price-server
10-
sudo cp sample/price-server-start.sh $PRICE_SERVER_PATH/
10+
cp sample/price-server-start.sh $PRICE_SERVER_PATH/
1111
chown terrau:terrau $PRICE_SERVER_PATH/price-server-start.sh
1212
chmod a+x $PRICE_SERVER_PATH/price-server-start.sh
1313
sudo cp sample/price-server.service /etc/systemd/system/
@@ -16,9 +16,10 @@ echo " done"
1616
echo -n "Installing Oracle Feeder..."
1717
FEEDER_PATH=/home/terrau/oracle-feeder/feeder
1818
cp sample/feeder-start.sh $FEEDER_PATH/
19-
chown terrau:terrau $FEEDER_PATH/feeder-start.sh
19+
sudo chown terrau:terrau $FEEDER_PATH/feeder-start.sh
2020
chmod a+x $FEEDER_PATH/feeder-start.sh
2121
sudo cp sample/feeder.service /etc/systemd/system/
22+
echo " done"
2223

2324
sudo systemctl daemon-reload
2425
#sudo systemctl enable terrad

0 commit comments

Comments
 (0)