Skip to content

Commit

Permalink
fix: make ag-cosmos-helper's home $HOME/.ag-cosmos-helper again
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Oct 7, 2020
1 parent f97171a commit 1b9ad64
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 7 additions & 1 deletion packages/cosmic-swingset/cmd/ag-cosmos-helper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ package main
// #cgo LDFLAGS: -L/usr/local/lib
import "C"

import "github.com/Agoric/cosmic-swingset/lib/daemon"
import (
"os"

"github.com/Agoric/cosmic-swingset/app"
"github.com/Agoric/cosmic-swingset/lib/daemon"
)

func main() {
app.DefaultNodeHome = os.ExpandEnv("$HOME/.ag-cosmos-helper")
daemon.Run()
}
8 changes: 1 addition & 7 deletions packages/deployment/UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@

This file contains hints for how to upgrade your validator from prior versions.

## Upgrading from 2.6.0
## Upgrading from 2.8.0

* `ag-cosmos-helper` used to have a default `--home` value of `$HOME/.ag-cosmos-helper`, but now it
stores its state in `$HOME/.ag-chain-cosmos`. If you explicitly use `ag-cosmos-helper --home=...` you should not need to change anything.
You can copy any on-disk keys with:
```sh
cp -a ~/.ag-cosmos-helper/keyring* ~/.ag-chain-cosmos/
```
* The format of `$HOME/.ag-chain-cosmos/config/app.toml` has changed. When you are about to start your validator for the new testnet, do the following to upgrade:
```sh
# Remove the old app.toml
Expand Down

0 comments on commit 1b9ad64

Please sign in to comment.