You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 29, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,15 @@ forge interactive
25
25
26
26
* The repo would then checkout to the release version and the binaries would be built, genesis file downloaded/constructed, and a command to run the node would be output to the console.
27
27
28
+
### Optional
29
+
30
+
Forge uses the GitHub Api to pull information about the provenance repo for you to use when spinning up a node. If you use forge a lot in a short time, you could hit the 60 calls per hour limit. You can add a GitHub Api Token to your environment in order to increase this to 5000 calls per hour.
31
+
32
+
You can follow the instructions [Here](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) to setup a personal access token.
33
+
Once that is complete, add the token generated to your environment:
34
+
```sh
35
+
GITHUB_API_TOKEN=token_value
36
+
```
28
37
29
38
### Forge comes with command line tools that can speed up the process.
command2="{}/bin/provenanced --home {} keys add validator --keyring-backend test 2>&1;".format(
175
+
command2="{}/bin/provenanced --home {} -t keys add validator --keyring-backend test 2>&1;".format(
176
176
build_path, build_path, build_path)
177
-
command3="{}/bin/provenanced --home {} add-genesis-root-name validator pio --keyring-backend test 2>&- || echo pio root name already exists, skipping...;".format(
177
+
command3="{}/bin/provenanced --home {} -t add-genesis-root-name validator pio --keyring-backend test 2>&- || echo pio root name already exists, skipping...;".format(
178
178
build_path, build_path)
179
-
command3+="{}/bin/provenanced --home {} add-genesis-root-name validator pb --restrict=false --keyring-backend test 2>&- || echo pb root name already exists, skipping...;".format(
179
+
command3+="{}/bin/provenanced --home {} -t add-genesis-root-name validator pb --restrict=false --keyring-backend test 2>&- || echo pb root name already exists, skipping...;".format(
180
180
build_path, build_path)
181
-
command3+="{}/bin/provenanced --home {} add-genesis-root-name validator io --restrict --keyring-backend test 2>&- || echo io root name already exists, skipping...;".format(
181
+
command3+="{}/bin/provenanced --home {} -t add-genesis-root-name validator io --restrict --keyring-backend test 2>&- || echo io root name already exists, skipping...;".format(
182
182
build_path, build_path)
183
-
command3+="{}/bin/provenanced --home {} add-genesis-root-name validator provenance --keyring-backend test 2>&- || echo validator root name already exists, skipping...;".format(
183
+
command3+="{}/bin/provenanced --home {} -t add-genesis-root-name validator provenance --keyring-backend test 2>&- || echo validator root name already exists, skipping...;".format(
184
184
build_path, build_path)
185
-
command3+="{}/bin/provenanced --home {} add-genesis-account validator 100000000000000000000nhash --keyring-backend test 2>&-;".format(
185
+
command3+="{}/bin/provenanced --home {} -t add-genesis-account validator 100000000000000000000nhash --keyring-backend test 2>&-;".format(
print("It looks like a node was initialized and deleted.\nForge is removing this from the config so you can run the same command again and the node will be initialized and started.".format())
# In case of localnet, list release versions for user to select
46
47
whileversion==None:
47
48
try:
48
-
version=input("Enter a release version from above. Run forge -v for full list of versions [{}]:\n".format(
49
+
version=input("Enter a release version from above or a proveance branch. Run 'forge provenance tags' for full list of versions or 'forge provenance branches' for a full list of branches [{}]:\n".format(
print("Something went wrong reaching out to {}".format(
315
-
global_.GITHUB_URL+'branches'))
360
+
ifgithub_api_token==None:
361
+
print("Something went wrong reaching out to {}\nTry adding GITHUB_API_TOKEN to your environment to increase number of times you can call the github api.".format(
362
+
global_.GITHUB_URL+'tags'))
363
+
364
+
else:
365
+
print("Something went wrong reaching out to {}\nYou may be out of api requests which is limited to 5000 per hour".format(
print("Something went wrong reaching out to {}".format(
330
-
global_.GITHUB_URL+'branches'))
386
+
ifgithub_api_token==None:
387
+
print("Something went wrong reaching out to {}\nTry adding GITHUB_API_TOKEN to your environment to increase number of times you can call the github api.".format(
388
+
global_.GITHUB_URL+'branches'))
389
+
390
+
else:
391
+
print("Something went wrong reaching out to {}\nYou may be out of api requests which is limited to 5000 per hour".format(
0 commit comments