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
Ethan Buchman
d55243f0e6
fix import paths
2018-07-01 22:36:49 -04:00
Alexander Simmerl
a605b66c5a
Move abci imports
2018-06-22 07:28:07 +02:00
Zach
2cc63069c6
rename dummy to kvstore ( #1223 )
...
* remove accidental binary
* docs: s/Dummy&dummy/KVStore&kvstore/g
* glide update to abci
* update abci import paths
* dummy begone, hello kvstore
* RequestInitChain needs genesisBytes
* glide update
2018-02-27 18:01:10 +04:00
Ethan Buchman
cd0fd06b0d
update for sdk2 libs. need to fix kv test
...
NOTE we only updating for tmlibs and abci
2018-02-03 03:35:02 -05:00
Ethan Buchman
f06cc6630b
mempool: cfg.CacheSize and expose InitWAL
2018-01-19 01:03:03 -05:00
Ethan Buchman
d2db202a2d
mempool: assert -> require in test
2017-12-02 23:41:09 -05:00
Ethan Buchman
9af8da7aad
update for new abci int types
2017-12-02 01:47:55 -05:00
Anton Kaliaev
922af7c405
int64 height
...
uint64 is considered dangerous. the details will follow in a blog post.
2017-12-01 19:04:53 -06:00
Anton Kaliaev
b3492356e6
uint64 height (Refs #911 )
2017-12-01 17:17:22 -05:00
Anton Kaliaev
1e19860585
fixes from my own review
2017-11-29 14:24:18 -06:00
Anton Kaliaev
f65e357d2b
adapt Tendermint to new abci.Client interface
...
which was introduced in https://github.com/tendermint/abci/pull/130
2017-11-29 14:23:44 -06:00
Anton Kaliaev
69b5da766c
service#Start, service#Stop signatures were changed
...
See https://github.com/tendermint/tmlibs/issues/45
2017-11-29 10:38:58 -06:00
Emmanuel Odeke
3595b5931a
mempool: implement Mempool.CloseWAL
...
Fixes https://github.com/tendermint/tendermint/issues/890
Add a CloseWAL method to Mempool to close the underlying WAL file
and then discard it so that further writes to it will have no effect.
2017-11-27 21:37:25 -07:00
Zach Ramsay
68e7983c70
linting errors: afew more
2017-11-27 22:39:11 +00:00
Zach Ramsay
331857c9e6
linting: apply errcheck part2
2017-11-27 22:39:11 +00:00
Ethan Buchman
88138c38cf
mempool: reactor test
2017-09-05 16:25:02 -04:00
Ethan Buchman
c5a657f540
consensus: test proposal heartbeat
2017-08-10 01:24:23 -04:00
Ethan Buchman
3444bee47f
fixes from review; use mempool.TxsAvailable() directly
2017-07-28 23:42:43 -04:00
Ethan Buchman
678a9a2e42
TxsAvailable tests
2017-07-28 22:11:45 -04:00
Anton Kaliaev
91dc87e7c4
update for a new ABCI API
2017-05-16 19:06:35 +02:00
Anton Kaliaev
f803544195
new logging
2017-05-13 10:24:58 +02:00
Ethan Buchman
46151720f8
fix tests
2017-05-04 22:46:41 -04:00
Ethan Buchman
4982cb4d1f
fix tests for state and mempool
2017-05-04 22:43:55 -04:00
Ethan Buchman
94b6dd65ee
AppendTx -> DeliverTx
2017-01-12 15:55:03 -05:00
Ethan Buchman
c147b41013
TMSP -> ABCI
2017-01-12 15:53:32 -05:00
Ethan Buchman
a07063f119
add test for mempool deadlock
2016-10-10 17:05:50 -04:00
Jae Kwon
ad17090a0f
No global config
2016-05-08 15:00:58 -07:00
Ethan Buchman
501c4e4bac
fixes from review
2016-04-26 22:17:13 -04:00
Jae Kwon
a8ee0377d5
Use tmsp.Client interface
2016-03-24 10:42:05 -07:00
Jae Kwon
8183e3201b
CommitSync() returns tmsp.Result
2016-03-23 02:49:30 -07:00
Jae Kwon
de6f76758d
Group (code,data,log) return values into types.Result
2016-03-20 17:10:59 -07:00
Jae Kwon
2c1504f93c
Reap takes maxTxs
2016-03-06 15:08:32 -08:00
Jae Kwon
03115cbf93
Fix tests; Tests run in their own directory
2016-03-06 15:05:50 -08:00
Ethan Buchman
c9ec9cf00e
config: block size, consensus timeouts, recheck tx
2016-02-29 17:04:33 -05:00
Jae Kwon
d31d3c58ad
Recheck txs
2016-02-14 17:00:33 -08:00
Jae Kwon
d17d4fa106
Fix tmsp/example import paths
2016-02-14 15:03:55 -08:00
Jae Kwon
a6d37a49a2
s/GetHash/Commit/g
2016-02-14 13:11:01 -08:00
Jae Kwon
a4f57e164b
BroadcastTx results
2016-02-08 00:48:58 -08:00
Jae Kwon
f1b48ff009
Use protobuf enums for CodeType
2016-02-04 18:41:29 -08:00
Jae Kwon
236c7afe9e
Conform to TMSP v0.2
2016-01-25 14:34:08 -08:00
Jae Kwon
3e3c0083c7
Make order be decided first; Remove TMSP Commit/Rollback
2016-01-08 16:51:20 -08:00
Jae Kwon
f288e58c81
Prefix TMSP messages with length
2015-12-20 08:18:39 -08:00
Jae Kwon
d0b8650edf
Fix tests for counter application using uin64
2015-12-09 09:37:36 -08:00
Jae Kwon
ef43af19ab
Tendermint <-> Application refactor
2015-12-01 20:12:01 -08:00
Jae Kwon
e12f9d10e7
Bare consensus refactor
2015-11-01 11:34:08 -08:00
Jae Kwon
2f60b5b674
fix mempool test
2015-09-29 12:31:37 -04:00
Ethan Buchman
cccb722ba8
mempool tests
2015-09-29 12:30:46 -04:00