Skip to content

Commit

Permalink
chore: update ostracon dep
Browse files Browse the repository at this point in the history
related with cosmos-sdk [\#11562](cosmos/cosmos-sdk#11562)
  • Loading branch information
zemyblue committed May 10, 2022
1 parent 153bdc9 commit 7984a9e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
### Improvements

* (refactor) [\#493](https://github.com/line/lbm-sdk/pull/493) restructure x/consortium
* (cli) [\#535](https://github.com/line/lbm-sdk/pull/536) updated ostracon to v1.0.5; `unsafe-reset-all` command has been moved to the `ostracon` sub-command.

### Bug Fixes
* (x/wasm) [\#453](https://github.com/line/lbm-sdk/pull/453) modify wasm grpc query api path
Expand Down
17 changes: 0 additions & 17 deletions server/oc_cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package server
import (
"fmt"

ostcmd "github.com/line/ostracon/cmd/ostracon/commands"
"github.com/line/ostracon/p2p"
pvm "github.com/line/ostracon/privval"
ostversion "github.com/line/ostracon/version"
Expand Down Expand Up @@ -115,19 +114,3 @@ against which this app has been compiled.
},
}
}

// UnsafeResetAllCmd - extension of the tendermint command, resets initialization
func UnsafeResetAllCmd() *cobra.Command {
return &cobra.Command{
Use: "unsafe-reset-all",
Short: "Resets the blockchain database, removes address book files, and resets data/priv_validator_state.json to the genesis state",
RunE: func(cmd *cobra.Command, args []string) error {
serverCtx := GetServerContextFromCmd(cmd)
cfg := serverCtx.Config

ostcmd.ResetAll(cfg.DBDir(), cfg.P2P.AddrBookFile(), cfg.PrivValidatorKeyFile(), cfg.PrivValidatorStateFile(),
cfg.PrivKeyType, serverCtx.Logger)
return nil
},
}
}
4 changes: 3 additions & 1 deletion server/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package server
import (
"errors"
"fmt"
ostcmd "github.com/line/ostracon/cmd/ostracon/commands"
"io"
"net"
"os"
Expand Down Expand Up @@ -278,13 +279,14 @@ func AddCommands(rootCmd *cobra.Command, defaultNodeHome string, appCreator type
ShowValidatorCmd(),
ShowAddressCmd(),
VersionCmd(),
ostcmd.ResetAllCmd,
ostcmd.ResetStateCmd,
)
startCmd := StartCmd(appCreator, defaultNodeHome)
addStartFlags(startCmd)

rootCmd.AddCommand(
startCmd,
UnsafeResetAllCmd(),
ostraconCmd,
ExportCmd(appExport, defaultNodeHome),
version.NewVersionCommand(),
Expand Down

0 comments on commit 7984a9e

Please sign in to comment.