Skip to content

Commit

Permalink
Merge pull request #597 from HaoyangLiu/release0.6
Browse files Browse the repository at this point in the history
IRISHUB-710: fix wrong example command and add log in replay
  • Loading branch information
HaoyangLiu authored Nov 14, 2018
2 parents b38f464 + 8a57bcf commit a802a7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down

0 comments on commit a802a7e

Please sign in to comment.