Skip to content

Commit c1d3af1

Browse files
committed
update instructions with print-safe-config command;
1 parent 6baef0b commit c1d3af1

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Bootstrap parameters available to edit:
7575
## Invite new oracle to the running pool
7676

7777
To invite a new oracle the person that bootstrapped the pool need to send one oracle token and one reward token. On bootstrap X oracle and reward tokens are sent to the `oracle_address`, where X is the total oracle token quantity minted on bootstrap.
78-
Besides the tokens the `oracle_config.yaml` config file that you are running now should be sent as well. Be carefull to cleanup the `node_api_key` and `oracle_address` fields before you send it and instruct the invited oracle to set them to their liking.
78+
Besides the tokens the config file that you are running now should be sent as well. Run `oracle-core print-safe-config`, send it, and instruct the invited oracle to set `node_ip`, `node_api_key` and `oracle_address` to their liking.
7979

8080
## Joining a running pool
8181

@@ -118,7 +118,7 @@ oracle-core transfer-oracle-token <ADDRESS>
118118
```
119119

120120
Ensure the new address has enough coins for tx fees to run in a pool.
121-
As with inviting a new oracle, the `oracle_config.yaml` config file you are running now should also be sent. Again, clean up the `node_api_key` and `oracle_address` fields before you send it and instruct the invited oracle to set them to their liking.
121+
As with inviting a new oracle, the config file that you are running now should be sent as well. Run `oracle-core print-safe-config`, send it, and instruct the invited oracle to set `node_ip`, `node_api_key` and `oracle_address` to their liking.
122122

123123
## Updating the contracts/tokens
124124

@@ -183,7 +183,9 @@ Where:
183183
<REWARD_TOKEN_AMOUNT> - reward token amount in the pool box at the time of update transaction is committed
184184

185185
This will submit an update tx.
186-
After the update tx is confirmed, remove `scanIds.json` and use `oracle_config_updated.yaml` to run the oracle (i.e., rename it to `oracle_config.yaml` and restart the oracle). Distribute the new oracle config file (with zeroed credentials - node_api_key, node_ip, oracle_address, etc) to all the oracles and keep in mind that they have to set their own requisites in the received config. Be sure they delete `scanIds.json` before restart.
186+
After the update tx is confirmed, remove `scanIds.json` and use `oracle_config_updated.yaml` to run the oracle (i.e., rename it to `oracle_config.yaml` and restart the oracle).
187+
Distribute the new oracle config file to all the oracles. Run `oracle-core print-safe-config`, send it, and instruct the invited oracle to set `node_ip`, `node_api_key` and `oracle_address` to their liking.
188+
Be sure they delete `scanIds.json` before restart.
187189

188190
## How to run as systemd daemon
189191

docs/update_epoch_length.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,6 @@ Where:
8080
were printed at the end of the `prepare-update` command.
8181

8282
This will submit an update tx.
83-
After the update tx is confirmed, remove `scanIds.json` and use `oracle_config_updated.yaml` to run the oracle (i.e., rename it to `oracle_config.yaml` and restart the oracle). Distribute the new oracle config file (with zeroed credentials - node_api_key, node_ip, oracle_address, etc) to all the oracles and keep in mind that they have to set their own requisites in the received config. Be sure they delete `scanIds.json` before restart.
83+
After the update tx is confirmed, remove `scanIds.json` and use `oracle_config_updated.yaml` to run the oracle (i.e., rename it to `oracle_config.yaml` and restart the oracle).
84+
Distribute the new oracle config file to all the oracles. Run `oracle-core print-safe-config`, send it, and instruct the invited oracle to set `node_ip`, `node_api_key` and `oracle_address` to their liking.
85+
Be sure they delete `scanIds.json` before restart.

0 commit comments

Comments
 (0)