abci: remove TotalTxs and NumTxs from Header (#3783)

* Removal of TotalTx & NumTx

- Removed totalTx and numTx

closes #2521

Signed-off-by: Marko Baricevic <marbar3778@yahoo.com>

* abci proto changes

* proto number fix

* txfilter_test fix

* comments on PR

* further changes

* bring back metrics

* fix indexer

* fix TestBlockMaxDataBytes and TestBlockMaxDataBytesUnknownEvidence

* indexer service back to header

* statistics.go fix

* fix ci

* listen for blocks, not headers

to be able to record txs throughput

* fix TestNetworkNewBlock

* fix tests

* fix tests in types package

* fixes after Anton's review

* fix tests

* bring back `consensus_total_txs` metric

I mistakenly thought it was removed.

* improve changelog

* remove LastBlockTotalTx from state

* docs: remove getNumTxs from BeginBlock Java example
This commit is contained in:
Marko
2019-11-14 10:56:13 +01:00
committed by Anton Kaliaev
parent 9174fb7892
commit 1604047c39
37 changed files with 327 additions and 534 deletions

View File

@@ -1168,8 +1168,6 @@ definitions:
- "chain_id"
- "height"
- "time"
- "num_txs"
- "total_txs"
- "last_block_id"
- "last_commit_hash"
- "data_hash"
@@ -1202,12 +1200,6 @@ definitions:
time:
type: string
x-example: "2019-04-22T17:01:51.701356223Z"
num_txs:
type: string
x-example: "2"
total_txs:
type: string
x-example: "3"
last_block_id:
$ref: "#/definitions/BlockID"
last_commit_hash:
@@ -1596,8 +1588,6 @@ definitions:
- "chain_id"
- "height"
- "time"
- "num_txs"
- "total_txs"
- "last_block_id"
- "last_commit_hash"
- "data_hash"
@@ -1630,12 +1620,6 @@ definitions:
time:
type: "string"
example: "2019-04-22T17:01:51.701356223Z"
num_txs:
type: "string"
example: "2"
total_txs:
type: "string"
example: "3"
last_block_id:
required:
- "hash"