tendermint/mempool
Dev Ojha 111e627037 mempool: Filter new txs if they have insufficient gas (#2385)
This also refactors the prior mempool to filter to be known as
"precheck filter" and this new filter is called "postcheck filter"

This PR also fixes a bug where the precheck filter previously didn't
account for the amino overhead, which could a maliciously sized tx to
halt blocks from getting any txs in them.

* Move maxGas outside of function definition to avoid race condition
* Type filter funcs and make public
* Use helper method for post check
* Remove superfluous Filter suffix
* Move default pre/post checks into package
* Fix broken references
* Fix typos
* Expand on examples for checks
2018-09-22 02:50:06 +02:00
..
mempool.go mempool: Filter new txs if they have insufficient gas (#2385) 2018-09-22 02:50:06 +02:00
mempool_test.go mempool: Filter new txs if they have insufficient gas (#2385) 2018-09-22 02:50:06 +02:00
metrics.go fixes after @xla review 2018-06-20 12:40:25 +04:00
reactor.go unexport DecodeMessage functions 2018-07-09 13:01:23 +04:00
reactor_test.go reap max bytes from the mempool & check transaction size 2018-08-31 16:01:21 +04:00
wire.go Fix mempool 2018-03-31 11:51:32 +02:00