Anton Kaliaev
3fa734ef5a
recheck only if there are txs left in the mempool ( #1645 )
7 years ago
Ethan Buchman
98b0c51b5f
fix possible mempool deadlock
7 years ago
Anton Kaliaev
202a43a5af
remove TODO
no longer relevant, I guess. since ABCI only defines 0 (success) code.
7 years ago
Anton Kaliaev
c9001d5a11
bound the mempool
Refs #345
7 years ago
Anton Kaliaev
ae572b9038
remove extra call to Exists
Refs #345
https://github.com/tendermint/tendermint/issues/1539#issuecomment-387240606
7 years ago
Anton Kaliaev
bbe1355957
log only hash, not tx itself
7 years ago
Anton Kaliaev
7c14fa820d
do not log txs at info level
BEFORE:
```
./tm-bench -c 5 -r 1000 127.0.0.1:46657
Stats Avg StdDev Max
Txs/sec 1826 843 2744
Blocks/sec 1.100 0.300 2
```
AFTER:
```
./tm-bench -T 30 -c 5 -r 1000 127.0.0.1:46657
Stats Avg StdDev Max
Txs/sec 6120 1970 9776
Blocks/sec 1.000 0.000 1
```
7 years ago
Anton Kaliaev
11b68f1934
rewrite broadcastTxRoutine to use channels
https://play.golang.org/p/gN21yO9IRs3
```
func waitWithCancel(f func() *clist.CElement, ctx context.Context) *clist.CElement {
el := make(chan *clist.CElement, 1)
select {
case el <- f():
```
will just run f() blockingly, so this doesn't change much in terms of behavior.
7 years ago
Anton Kaliaev
5f3048bd09
call FlushSync before calling CommitSync
if we call it after, we might receive a "fresh" transaction from
`broadcast_tx_sync` before old transactions (which were not
committed).
Refs #1091
```
Commit is called with a lock on the mempool, meaning no calls to CheckTx
can start. However, since CheckTx is called async in the mempool
connection, some CheckTx might have already "sailed", when the lock is
released in the mempool and Commit proceeds.
Then, that spurious CheckTx has not yet "begun" in the ABCI app (stuck
in transport?). Instead, ABCI app manages to start to process the
Commit. Next, the spurious, "sailed" CheckTx happens in the wrong place.
```
7 years ago
Ethan Buchman
f06cc6630b
mempool: cfg.CacheSize and expose InitWAL
7 years ago
Ethan Buchman
c9be2b89f9
mempool: return error on cached txs
7 years ago
Anton Kaliaev
922af7c405
int64 height
uint64 is considered dangerous. the details will follow in a blog post.
7 years ago
Anton Kaliaev
86af889dfb
remove unnecessary casts (Refs #911 )
7 years ago
Anton Kaliaev
b3492356e6
uint64 height (Refs #911 )
7 years ago
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.
7 years ago
Zach Ramsay
8f0237610e
linting errors: clean it all up
7 years ago
Zach Ramsay
b75d4f73e7
errcheck: PR comment fixes
7 years ago
Zach Ramsay
331857c9e6
linting: apply errcheck part2
7 years ago
Adrian Brink
819f81f702
Change NOTE to CONTRACT
7 years ago
Adrian Brink
782a836db0
Cleanup of code and code docs
This cleans up some of the code in the state package
7 years ago
Anton Kaliaev
f908dd0e55
only notify when there are some txs (Refs #753 )
7 years ago
Anton Kaliaev
54f2cc9709
[docs] add how to read logs guide [ci skip]
7 years ago
Ethan Buchman
88138c38cf
mempool: reactor test
7 years ago
Ethan Buchman
c5a657f540
consensus: test proposal heartbeat
7 years ago
Ethan Buchman
fb47ca6d35
fixes from review
7 years ago
Ethan Buchman
3444bee47f
fixes from review; use mempool.TxsAvailable() directly
7 years ago
Ethan Buchman
fc3fe9292f
fixes from review
7 years ago
Ethan Buchman
124032e3e9
NoEmptyBlocks config option
7 years ago
Ethan Buchman
4beac54bd9
no empty blocks
7 years ago
Ethan Buchman
311f18bebf
mempool: comments
7 years ago
spring1843
cf686d4f83
Fix commonly misspelled words
8 years ago
Anton Kaliaev
f8fdbe3dbc
changes as per Bucky's review
8 years ago
Anton Kaliaev
f803544195
new logging
8 years ago
Ethan Frey
6b059e0063
Accept relative paths in all configs, TODO: must SetRoot
8 years ago
Ethan Frey
604bf03f3a
Pulled out all config structs (except p2p.PeerConfig) into config package
8 years ago
Ethan Buchman
75b6c5215f
fewer structs. remove viper from consensus
8 years ago
Ethan Buchman
7c0f51e24b
remove viper from mempool
8 years ago
Ethan Buchman
fcf78a5da7
cleanup go-config/viper and some unnamed imports
8 years ago
Rigel Rozanski
cefb2bede0
adding viper
int
int
8 years ago
Ethan Buchman
d1926bcad1
use tmlibs
8 years ago
Ethan Buchman
cbe6dbe7a1
handshake replay through consensus using mockApp
8 years ago
Ethan Buchman
c147b41013
TMSP -> ABCI
8 years ago
Ethan Buchman
8ec1839f5d
save block b4 apply; track stale apphash
8 years ago
Jae Kwon
2aecb2a4a3
Ensure *_wal_dir exists
8 years ago
Jae Kwon
3d3d8b5b7b
cswal -> cs_wal_dir
8 years ago
Jae Kwon
830e84adc4
Fix minor bug in Consensus WAL; Fix AutoFile dependency
8 years ago
Jae Kwon
642a24dc9c
Mempool WAL
8 years ago
Jae Kwon
b38748ad1a
Fix race condition; Refactor out txCache
8 years ago
Silas Davis
7f31ec3398
Fix doc comment on mempool reap
8 years ago
Ethan Buchman
3a7ee13ece
proxy: typed app conns
8 years ago