tendermint/mempool
srmo e36ce6f893 fix race condition on proposal height for published txs (#2021)
* #1920 try to fix race condition on proposal height for published txs

- related to create_empty_blocks=false
- published height for accepted tx can be wrong (too low)
- use the actual mempool height + 1 for the proposal
- expose Height() on mempool

* #1920 add initial test for mempool.Height()

- not sure how to test the lock
- can the mutex reference be of type Locker?
-- this way, we can use a "mock" of the mutex to test triggering

* #1920 use the ConsensusState height in favor of mempool

- gets rid of indirections
- doesn't need any "+1" magic

* #1920 cosmetic

- if we use cs.Height, it's enough to evaluate right before propose

* #1920 cleanup TODO and non-needed code

* #1920 add changelog entry
2018-07-23 15:34:45 +04:00
..
mempool.go fix race condition on proposal height for published txs (#2021) 2018-07-23 15:34:45 +04:00
mempool_test.go fix race condition on proposal height for published txs (#2021) 2018-07-23 15:34:45 +04: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 fix import paths 2018-07-01 22:36:49 -04:00
wire.go Fix mempool 2018-03-31 11:51:32 +02:00