diff --git a/app/app.go b/app/app.go index 8cf38fe8c..68b21cc48 100644 --- a/app/app.go +++ b/app/app.go @@ -369,9 +369,13 @@ func (app *IrisApp) replay() int64 { } var loadHeight int64 if blockStore.Height() == curState.LastBlockHeight { + app.Logger.Info(fmt.Sprintf("blockstore height equals to current state height %d", curState.LastBlockHeight)) + app.Logger.Info("Just reset state DB to last height") sm.SaveState(stateDB, preState) loadHeight = preState.LastBlockHeight } else if blockStore.Height() == curState.LastBlockHeight+1 { + app.Logger.Info(fmt.Sprintf("blockstore height %d, current state height %d", blockStore.Height(), curState.LastBlockHeight)) + app.Logger.Info(fmt.Sprintf("Retreat block %d in block store and reset state DB to last height", blockStore.Height())) blockStore.RetreatLastBlock() sm.SaveState(stateDB, preState) loadHeight = preState.LastBlockHeight diff --git a/client/stake/cli/sendtx.go b/client/stake/cli/sendtx.go index 09b7cc2cd..cedba54da 100644 --- a/client/stake/cli/sendtx.go +++ b/client/stake/cli/sendtx.go @@ -190,7 +190,7 @@ func GetCmdBeginRedelegate(storeName string, cdc *wire.Codec) *cobra.Command { cmd := &cobra.Command{ Use: "begin", Short: "begin redelegation", - Example: "iriscli stake redelegation begin --chain-id= --from= --fee=0.004iris --address-validator-source= --address-validator-dest= shares-percent=0.5", + Example: "iriscli stake redelegation begin --chain-id= --from= --fee=0.004iris --address-validator-source= --address-validator-dest= --shares-amount=1", RunE: func(cmd *cobra.Command, args []string) error { cliCtx := context.NewCLIContext(). WithCodec(cdc). @@ -347,7 +347,7 @@ func GetCmdBeginUnbonding(storeName string, cdc *wire.Codec) *cobra.Command { cmd := &cobra.Command{ Use: "begin", Short: "begin unbonding", - Example: "iriscli stake unbond begin --chain-id= --from= --fee=0.004iris --address-validator= shares-percent=0.5", + Example: "iriscli stake unbond begin --chain-id= --from= --fee=0.004iris --address-validator= --shares-amount=1", RunE: func(cmd *cobra.Command, args []string) error { cliCtx := context.NewCLIContext(). WithCodec(cdc). diff --git a/version/version.go b/version/version.go index a56145992..079db5e87 100644 --- a/version/version.go +++ b/version/version.go @@ -7,7 +7,7 @@ import ( ) // Version - Iris Version -const Version = "0.6.1" +const Version = "0.6.2" // GitCommit set by build flags var GitCommit = ""