Skip to content

Commit

Permalink
[LocalNet] change moniker from validator1 to sequencer1 (#9)
Browse files Browse the repository at this point in the history
* change moniker

* also rename the keyring file

* --wip-- [skip ci]

* also address constantly changing files
  • Loading branch information
okdas authored Oct 6, 2023
1 parent 57bd1c8 commit 4767c46
Show file tree
Hide file tree
Showing 31 changed files with 12 additions and 613 deletions.
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
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

0 comments on commit 4767c46

Please sign in to comment.