mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-27 21:21:20 +00:00
further changes
This commit is contained in:
parent
d5afd9f030
commit
278c4625db
@ -8,6 +8,7 @@ import (
|
|||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
abci "github.com/tendermint/tendermint/abci/types"
|
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/db"
|
||||||
"github.com/tendermint/tendermint/libs/log"
|
"github.com/tendermint/tendermint/libs/log"
|
||||||
"github.com/tendermint/tendermint/state/txindex"
|
"github.com/tendermint/tendermint/state/txindex"
|
||||||
@ -37,6 +38,7 @@ func TestIndexerServiceIndexesBlocks(t *testing.T) {
|
|||||||
eventBus.PublishEventNewBlock(types.EventDataNewBlock{
|
eventBus.PublishEventNewBlock(types.EventDataNewBlock{
|
||||||
Block: &types.Block{
|
Block: &types.Block{
|
||||||
Header: types.Header{Height: 1},
|
Header: types.Header{Height: 1},
|
||||||
|
Data: types.Data{Txs: types.Txs{cmn.RandBytes(123), cmn.RandBytes(124)}},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
txResult1 := &types.TxResult{
|
txResult1 := &types.TxResult{
|
||||||
|
@ -66,8 +66,8 @@ func calculateStatistics(
|
|||||||
// increase number of blocks for that second
|
// increase number of blocks for that second
|
||||||
numBlocksPerSec[sec]++
|
numBlocksPerSec[sec]++
|
||||||
|
|
||||||
// TODO: add tracking for tx/sec
|
|
||||||
// increase number of txs for that second
|
// increase number of txs for that second
|
||||||
|
// TODO: add tracking for tx/sec
|
||||||
numTxsPerSec[sec] += 1
|
numTxsPerSec[sec] += 1
|
||||||
logger.Debug(fmt.Sprintf("%d txs at block height %d", 1, blockMeta.Header.Height))
|
logger.Debug(fmt.Sprintf("%d txs at block height %d", 1, blockMeta.Header.Height))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user