Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LocalNet] change moniker from validator1 to sequencer1 #9

Merged
merged 4 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ go.work
bin
!bin/.keep

# Why: pocketd CLI should use the same keys as the node that runs inside the cluster to
# allow commands such as `pocketd tx stake` for work.
# Before we provision the localnet, `ignite` creates the accounts, genesis, etc. for us
# As many of the files are dynamic, we only preserve the config files in git history.
localnet/pocketd/*
!localnet/pocketd/keyring-test/
!localnet/pocketd/keyring-test/*
!localnet/*/config/
!localnet/*/config/*
localnet/*/config/
!localnet/*/config/{app.toml,client.toml,config.toml}

# Macos
.DS_Store
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ docker_wipe: docker_check warn_destructive prompt_user ## [WARNING] Remove all t

.PHONY: localnet_up
localnet_up: ## Starts localnet
make localnet_regenesis
Olshansk marked this conversation as resolved.
Show resolved Hide resolved
tilt up

.PHONY: localnet_down
Expand All @@ -80,10 +81,9 @@ localnet_down: ## Delete resources created by localnet
localnet_regenesis: # Regenerate the localnet genesis file
# NOTE: intentionally not using --home <dir> flag to avoid overwriting the test keyring
ignite chain init --skip-proto
rm -rf $(POCKETD_HOME)/keyring-test
cp -r ${HOME}/.pocket/keyring-test $(POCKETD_HOME)
cp ${HOME}/.pocket/config/*_key.json $(POCKETD_HOME)/config/
cp ${HOME}/.pocket/config/genesis.json ./localnet/
cp ${HOME}/.pocket/config/genesis.json $(POCKETD_HOME)/config/

#############
### Tests ###
Expand Down
6 changes: 3 additions & 3 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ accounts:
mnemonic: "baby advance work soap slow exclude blur humble lucky rough teach wide chuckle captain rack laundry butter main very cannon donate armor dress follow"
coins:
- 999999999999999999upokt
- name: validator1
- name: sequencer1
mnemonic: "creek path rule retire evolve vehicle bargain champion roof whisper prize endorse unknown anchor fashion energy club sauce elder parent cotton old affair visa"
coins:
- 900000000000000upokt
Expand Down Expand Up @@ -56,10 +56,10 @@ client:
openapi:
path: docs/static/openapi.yml
validators:
- name: validator1
- name: sequencer1
bonded: 900000000upokt
config:
moniker: "validator1"
moniker: "sequencer1"
# We can persist arbitrary genesis values via 1 to 1 mapping to genesis.json
genesis:
app_state:
Expand Down
Loading