diff --git a/consensus/replay_test.go b/consensus/replay_test.go index 3ab5e7f2c3..76153b442c 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 2b8fad6a1d..dcde691e2e 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 {