Skip to content

Commit

Permalink
fixes godocs
Browse files Browse the repository at this point in the history
  • Loading branch information
staheri14 committed Sep 25, 2024
1 parent 782efa1 commit 26dfedf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions consensus/replay_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const (
//--------------------------------------------------------
// replay messages interactively or all at once

// replay the wal file
// RunReplayFile replays the wal file
func RunReplayFile(config cfg.BaseConfig, csConfig *cfg.ConsensusConfig, console bool) {
consensusState := newConsensusStateForReplay(config, csConfig)

Expand All @@ -38,7 +38,7 @@ func RunReplayFile(config cfg.BaseConfig, csConfig *cfg.ConsensusConfig, console
}
}

// Replay msgs in file or start the console
// ReplayFile replays msgs in file or start the console
func (cs *State) ReplayFile(file string, console bool) error {

if cs.IsRunning() {
Expand Down
4 changes: 2 additions & 2 deletions consensus/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ type State struct {
config *cfg.ConsensusConfig
privValidator types.PrivValidator // for signing votes

// store blocks and commits
// blockStore blocks and commits
blockStore sm.BlockStore

// create and execute blocks
Expand Down Expand Up @@ -1699,7 +1699,7 @@ func (cs *State) finalizeCommit(height int64) {
stateCopy := cs.state.Copy()

// Execute and commit the block, update and save the state, and update the mempool.
// NOTE The block.AppHash wont reflect these txs until the next block.
// NOTE The block.AppHash won't reflect these txs until the next block.
var (
err error
retainHeight int64
Expand Down

0 comments on commit 26dfedf

Please sign in to comment.