Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ninabarbakadze committed Jun 19, 2024
1 parent a8021ba commit b0c0082
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions consensus/replay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func TestMain(m *testing.M) {
// the `Handshake Tests` are for failures in applying the block.
// With the help of the WAL, we can recover from it all!

//------------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------------
// WAL Tests

// TODO: It would be better to verify explicitly which states we can recover from without the wal
Expand Down Expand Up @@ -320,7 +320,7 @@ var (
sim testSim
)

//---------------------------------------
// ---------------------------------------
// Test handshake/replay

// 0 - all synced up
Expand Down Expand Up @@ -1041,7 +1041,7 @@ func (app *badApp) Commit() abci.ResponseCommit {
panic("either allHashesAreWrong or onlyLastHashIsWrong must be set")
}

//--------------------------
// --------------------------
// utils for making blocks

func makeBlockchainFromWAL(wal WAL) ([]*types.Block, []*types.Commit, error) {
Expand Down Expand Up @@ -1249,7 +1249,7 @@ func (bs *mockBlockStore) PruneBlocks(height int64) (uint64, error) {

func (bs *mockBlockStore) DeleteLatestBlock() error { return nil }

//---------------------------------------
// ---------------------------------------
// Test handshake/init chain

func TestHandshakeUpdatesValidators(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions state/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,7 @@ func ExecCommitBlock(
return res.Data, nil
}

// getResponseCodes gets response codes from a list of ResponseDeliverTx.
func getResponseCodes(responses []*abci.ResponseDeliverTx) []uint32 {
responseCodes := make([]uint32, len(responses))
for i, response := range responses {
Expand Down

0 comments on commit b0c0082

Please sign in to comment.