Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tm2/pkg/bft/consensus/replay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@
}

// Make some blocks. Start a fresh app and apply nBlocks blocks. Then restart the app and sync it up with the remaining blocks
func testHandshakeReplay(t *testing.T, config *cfg.Config, nBlocks int, mode uint, sim *testSim) {

Check failure on line 652 in tm2/pkg/bft/consensus/replay_test.go

View workflow job for this annotation

GitHub Actions / Run TM2 suite / Go Lint / lint

SA4009: argument config is overwritten before first use (staticcheck)
t.Helper()

var (
Expand All @@ -668,7 +668,7 @@
stateDB = memdb.NewMemDB()
defer stateDB.Close()
genesisState = sim.GenesisState
config = sim.Config

Check failure on line 671 in tm2/pkg/bft/consensus/replay_test.go

View workflow job for this annotation

GitHub Actions / Run TM2 suite / Go Lint / lint

SA4009(related information): assignment to config (staticcheck)
chain = sim.Chain
commits = sim.Commits
store = newMockBlockStore(config, genesisState.ConsensusParams)
Expand All @@ -676,6 +676,7 @@
} else { // test single node
testConfig, gf := ResetConfig(fmt.Sprintf("%s_%v_s", t.Name(), mode))
defer os.RemoveAll(testConfig.RootDir)
config = testConfig
walBody, err := WALWithNBlocks(t, numBlocks)
require.NoError(t, err)
walFile := tempWALWithData(walBody)
Expand Down
Loading