From b0c0082ab6c8da934f8f99c352d37233f3156b63 Mon Sep 17 00:00:00 2001 From: Nina Barbakadze Date: Wed, 19 Jun 2024 18:39:54 +0200 Subject: [PATCH] style: lint --- consensus/replay_test.go | 8 ++++---- state/execution.go | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/consensus/replay_test.go b/consensus/replay_test.go index 3ab5e7f2c..76153b442 100644 --- a/consensus/replay_test.go +++ b/consensus/replay_test.go @@ -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 @@ -320,7 +320,7 @@ var ( sim testSim ) -//--------------------------------------- +// --------------------------------------- // Test handshake/replay // 0 - all synced 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) { @@ -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) { diff --git a/state/execution.go b/state/execution.go index 2b8fad6a1..dcde691e2 100644 --- a/state/execution.go +++ b/state/execution.go @@ -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 {