Skip to content

Commit 6986e44

Browse files
committed
update update_epoch_length.md with up to date command parameters;
1 parent 9fd57a7 commit 6986e44

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Make sure the `pool_config_updated.yaml` config file generated during the `prepa
194194
Run
195195

196196
```console
197-
oracle-core update-pool pool_config_updated.yaml
197+
oracle-core import-update-pool pool_config_updated.yaml
198198
```
199199

200200
This will update the pool_config.yaml, removes `scanIds.json`. Restart the oracle afterwards.

docs/update_epoch_length.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,37 +49,34 @@ The new pool contract hash is printed along with current reward token amount and
4949
Run
5050

5151
```console
52-
oracle-core vote-update-pool <NEW_POOL_BOX_ADDRESS_HASH_STR> <REWARD_TOKEN_ID_STR> <REWARD_TOKEN_AMOUNT> <UPDATE_BOX_CREATION_HEIGHT>
52+
oracle-core vote-update-pool <NEW_POOL_BOX_ADDRESS_HASH_STR> <UPDATE_BOX_CREATION_HEIGHT>
5353
```
5454

5555
Where:
5656

5757
- <NEW_POOL_BOX_ADDRESS_HASH_STR> - base16-encoded blake2b hash of the serialized pool box contract for the new pool box
58-
- <REWARD_TOKEN_ID_STR> - base16-encoded reward token id in the new pool box (use existing if unchanged)
59-
- <REWARD_TOKEN_AMOUNT> - reward token amount in the pool box at the time of update transaction is committed
6058
- <UPDATE_BOX_CREATION_HEIGHT> - The creation height of the existing update box.
6159

6260
and are printed in the output of the `prepare-update` command.
6361

64-
Keep in mind the REWARD_TOKEN_AMOUNT depends on when(in which epoch) the final `update-pool` command will be run.
65-
6662
## Commit the update to the pool box contract with `update-pool` command
6763

6864
Make sure the `oracle_config_updated.yaml` config file generated during the `prepare-update` command is in the same folder as the oracle-core binary.
6965
Run
7066

7167
```console
72-
oracle-core update-pool <NEW_POOL_BOX_ADDRESS_HASH_STR> <REWARD_TOKEN_ID_STR> <REWARD_TOKEN_AMOUNT>
68+
oracle-core update-pool
7369
```
7470

75-
Where:
76-
<NEW_POOL_BOX_ADDRESS_HASH_STR> - base16-encoded blake2b hash of the serialized pool box contract for the new pool box
77-
<REWARD_TOKEN_ID_STR> - base16-encoded reward token id in the new pool box (use existing if unchanged)
78-
<REWARD_TOKEN_AMOUNT> - reward token amount in the pool box at the time of update transaction is committed
71+
This will submit an update tx.
7972

80-
were printed at the end of the `prepare-update` command.
73+
Make sure the `pool_config_updated.yaml` config file generated during the `prepare-update` command is at hand.
74+
Run
8175

82-
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).
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.
76+
```console
77+
oracle-core import-update-pool pool_config_updated.yaml
78+
```
79+
80+
This will update the pool_config.yaml, removes `scanIds.json`. Restart the oracle afterwards.
81+
82+
Distribute the `pool_config_updated.yaml` file to all the oracles and instruct them to run the above `import-update-pool` command.

0 commit comments

Comments
 (0)