tendermint/state
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
..
txindex fix import paths 2018-07-01 22:36:49 -04:00
errors.go fix import paths 2018-07-01 22:36:49 -04:00
execution.go make Block Header and Data non-pointers 2018-07-13 12:05:54 +04:00
execution_test.go crypto: Remove Ed25519 and Secp256k1 suffix on GenPrivKey 2018-07-20 10:44:21 -07:00
services.go fix race condition on proposal height for published txs (#2021) 2018-07-23 15:34:45 +04:00
state.go
state_test.go crypto: Remove Ed25519 and Secp256k1 suffix on GenPrivKey 2018-07-20 10:44:21 -07:00
store.go state: Format panics 2018-07-04 14:59:50 +02:00
validation.go fix import paths 2018-07-01 22:36:49 -04:00
validation_test.go fix import paths 2018-07-01 22:36:49 -04:00
wire.go crypto: Refactor to move files out of the top level directory 2018-07-18 08:38:44 -07:00