Skip to content

Commit

Permalink
node repo fix for bnb-chain/bnc-cosmos-sdk#150
Browse files Browse the repository at this point in the history
  • Loading branch information
ackratos committed Jun 19, 2019
1 parent 0482174 commit d3ef8a6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/bnbchaind/init/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@ func SnapshotCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command {

helper := store.NewStateSyncHelper(logger, appDB, cms, cdc)

logger.Info("start take snapshot")
helper.ReloadSnapshotRoutine(viper.GetInt64(flagHeight), 0)
height := viper.GetInt64(flagHeight)
logger.Info("start take snapshot", "height", height)

sdk.UpgradeMgr.SetHeight(height)
helper.ReloadSnapshotRoutine(height, 0)

return nil
},
Expand Down

0 comments on commit d3ef8a6

Please sign in to comment.