From cb2ed5bb7c293c5dfba9b88325caf1f38dc0c46d Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Mon, 17 Apr 2017 21:14:35 -0400 Subject: [PATCH] fixes from review --- consensus/replay.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/consensus/replay.go b/consensus/replay.go index 0ebbb735f..ab13d86f8 100644 --- a/consensus/replay.go +++ b/consensus/replay.go @@ -320,8 +320,7 @@ func (h *Handshaker) replayBlocks(proxyApp proxy.AppConns, appBlockHeight, store // We replay all blocks from appBlockHeight+1. // Note that we don't have an old version of the state, // so we by-pass state validation/mutation using sm.ExecCommitBlock. - // If mutateState == true, stop short of the last block - // so it can be replayed with a real state.ApplyBlock + // If mutateState == true, the final block is replayed with h.replayBlock() var appHash []byte var err error @@ -342,7 +341,7 @@ func (h *Handshaker) replayBlocks(proxyApp proxy.AppConns, appBlockHeight, store if mutateState { // sync the final block - return h.ReplayBlocks(appHash, finalBlock, proxyApp) + return h.replayBlock(storeBlockHeight, proxyApp.Consensus()) } return appHash, h.checkAppHash(appHash)