further changes

This commit is contained in:
Marko Baricevic 2019-07-10 13:25:21 +02:00
parent d5afd9f030
commit 278c4625db
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import (
"github.com/stretchr/testify/require"
abci "github.com/tendermint/tendermint/abci/types"
cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/state/txindex"
@ -37,6 +38,7 @@ func TestIndexerServiceIndexesBlocks(t *testing.T) {
eventBus.PublishEventNewBlock(types.EventDataNewBlock{
Block: &types.Block{
Header: types.Header{Height: 1},
Data: types.Data{Txs: types.Txs{cmn.RandBytes(123), cmn.RandBytes(124)}},
},
})
txResult1 := &types.TxResult{

View File

@ -66,8 +66,8 @@ func calculateStatistics(
// increase number of blocks for that second
numBlocksPerSec[sec]++
// TODO: add tracking for tx/sec
// increase number of txs for that second
// TODO: add tracking for tx/sec
numTxsPerSec[sec] += 1
logger.Debug(fmt.Sprintf("%d txs at block height %d", 1, blockMeta.Header.Height))
}