mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 12:11:58 +00:00
fixes from review
This commit is contained in:
@@ -320,8 +320,7 @@ func (h *Handshaker) replayBlocks(proxyApp proxy.AppConns, appBlockHeight, store
|
|||||||
// We replay all blocks from appBlockHeight+1.
|
// We replay all blocks from appBlockHeight+1.
|
||||||
// Note that we don't have an old version of the state,
|
// Note that we don't have an old version of the state,
|
||||||
// so we by-pass state validation/mutation using sm.ExecCommitBlock.
|
// so we by-pass state validation/mutation using sm.ExecCommitBlock.
|
||||||
// If mutateState == true, stop short of the last block
|
// If mutateState == true, the final block is replayed with h.replayBlock()
|
||||||
// so it can be replayed with a real state.ApplyBlock
|
|
||||||
|
|
||||||
var appHash []byte
|
var appHash []byte
|
||||||
var err error
|
var err error
|
||||||
@@ -342,7 +341,7 @@ func (h *Handshaker) replayBlocks(proxyApp proxy.AppConns, appBlockHeight, store
|
|||||||
|
|
||||||
if mutateState {
|
if mutateState {
|
||||||
// sync the final block
|
// sync the final block
|
||||||
return h.ReplayBlocks(appHash, finalBlock, proxyApp)
|
return h.replayBlock(storeBlockHeight, proxyApp.Consensus())
|
||||||
}
|
}
|
||||||
|
|
||||||
return appHash, h.checkAppHash(appHash)
|
return appHash, h.checkAppHash(appHash)
|
||||||
|
Reference in New Issue
Block a user