Skip to content

Commit 1ef28d2

Browse files
committed
fixes
1 parent 35eb3e8 commit 1ef28d2

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

block/manager.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,14 +1263,14 @@ func (m *Manager) replayBlocks(
12631263
if err != nil {
12641264
return nil, fmt.Errorf("failed to get block data for height %d: %w", i, err)
12651265
}
1266-
appHash, err = m.executor.ExecCommitBlock(proxyApp.Consensus(), block, m.logger, state, m.store)
1267-
if err != nil {
1268-
return nil, err
1269-
}
12701266
// Extra check to ensure the app was not changed in a way it shouldn't have.
12711267
if len(appHash) > 0 {
12721268
assertAppHashEqualsOneFromBlock(appHash, block)
12731269
}
1270+
appHash, err = m.executor.ExecCommitBlock(proxyApp.Consensus(), block, m.logger, state, m.store)
1271+
if err != nil {
1272+
return nil, err
1273+
}
12741274
}
12751275

12761276
assertAppHashEqualsOneFromState(appHash, state)

cmd/rollkit/docs/rollkit_start.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ rollkit start [flags]
4141
--rollkit.lazy_aggregator wait for transactions, don't build empty blocks
4242
--rollkit.light run light client
4343
--rollkit.max_pending_blocks uint limit of blocks pending DA submission (0 for no limit)
44+
--rollkit.replay replay blocks
4445
--rollkit.trusted_hash string initial trusted hash to start the header exchange service
4546
--rpc.grpc_laddr string GRPC listen address (BroadcastTx only). Port required
4647
--rpc.laddr string RPC listen address. Port required (default "tcp://127.0.0.1:26657")

state/executor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ func (e *BlockExecutor) ExecCommitBlock(
551551
return nil, fmt.Errorf("expected tx results length to match size of transactions in block. Expected %d, got %d", len(block.Data.Txs), len(resp.TxResults))
552552
}
553553

554-
logger.Info("Executed block", "height", block.Height, "app_hash", fmt.Sprintf("%X", resp.AppHash))
554+
logger.Info("Executed block", "height", block.Height(), "app_hash", fmt.Sprintf("%X", resp.AppHash))
555555

556556
// Commit block
557557
_, err = e.proxyApp.Commit(context.TODO())

0 commit comments

Comments
 (0)