Ethan Buchman
ed03cb5c17
consensus/replay: remove timeout
8 years ago
Ethan Buchman
54b26869d5
consensus/wal: #HEIGHT -> #ENDHEIGHT
8 years ago
Ethan Buchman
cb279bf662
state: ABCIResponses, s.Save() in ApplyBlock
8 years ago
Anton Kaliaev
c3f1b08b6a
tx indexing (Refs #237 )
save transactions to blockstore
move to a separate module
benchmark KVIndexer
batch write transactions
Benchmarks:
```
BenchmarkKVIndexerIndex-2 100000 516300 ns/op
PASS
ok github.com/tendermint/tendermint/blockchain/tx 56.506s
5,16 s for 10000 transactions
1 s for 2000 transactions
```
```
BenchmarkKVIndexerIndex-2 h 3000000 8622 ns/op
PASS
ok github.com/tendermint/tendermint/blockchain/tx 34.210s
86 ms for 10000 transactions
16 ms for 2000 transactions
```
```
BenchmarkKVIndexerIndex1-2 5000000 7160 ns/op
BenchmarkKVIndexerIndex500-2 20000 1750411 ns/op
BenchmarkKVIndexerIndex1000-2 10000 3573973 ns/op
BenchmarkKVIndexerIndex2000-2 5000 7836851 ns/op
BenchmarkKVIndexerIndex10000-2 1000 33438980 ns/op
PASS
ok github.com/tendermint/tendermint/blockchain/tx 209.482s
7,8 ms for 2000 transactions
```
[state] write test for ApplyBlock
review comments
- move txindexer to state
- fix type
save Tx Index as well
do not store tx itself in the result
8 years ago
Ethan Buchman
09f7dabd5e
update comment
8 years ago
Ethan Buchman
4fd1471f11
remove BaseService.OnStart
8 years ago
Ethan Buchman
85e83934a1
fixes from review
8 years ago
Ethan Buchman
077cf13a1f
consensus: timeout on replayLastBlock
8 years ago
Ethan Buchman
b1cd677711
types: valSet LastProposer->Proposer and Proposer()->GetProposer()
8 years ago
Ethan Buchman
749df0536f
test/docker: install abci apps first
8 years ago
Ethan Buchman
2037d2631a
fix race
8 years ago
Ethan Buchman
de0153a1c4
consensus: some more informative logging
8 years ago
Ethan Buchman
8ba79252c8
types: use mtx on PartSet.String()
8 years ago
Anton Kaliaev
2c724d5eee
remove warning messages in favor of "Send failed"
8 years ago
Anton Kaliaev
6dbe9febce
log warning if peer send failed (Refs #174 )
make lint happy
remove dead code
remove not needed go-common dependency
check peer.Send failures (Refs #174 )
8 years ago
Ethan Buchman
0c4b6cd071
consensus: more handshake replay tests
8 years ago
Ethan Buchman
f9df4294f3
move some interfaces to types/services.go
8 years ago
Ethan Buchman
0765613778
move handshake to consensus package
8 years ago
Ethan Buchman
756213c5f5
check appHash
8 years ago
Ethan Buchman
bc67859672
make ReplayBlocks logic exhaustive
8 years ago
Ethan Buchman
44d472ddd3
comments from review
8 years ago
Ethan Buchman
0bec99fbd4
consensus: handshake replay test using wal
8 years ago
Ethan Buchman
edc5e272db
consensus: nice error msg if ApplyBlock fails
8 years ago
Ethan Buchman
6403b2f468
fixes for handshake replay through consensus
8 years ago
Ethan Buchman
cbe6dbe7a1
handshake replay through consensus using mockApp
8 years ago
Ethan Buchman
99b068b313
BlockMeta uses BlockID
8 years ago
Ethan Buchman
7d91d4300b
update glide
8 years ago
Jae Kwon
1af930441c
Support new Query message for proofs
8 years ago
Jae Kwon
a073b1db9c
Refactor replay console -> replay_file in consensus/replay_file.go
8 years ago
Ethan Buchman
94b6dd65ee
AppendTx -> DeliverTx
8 years ago
Ethan Buchman
c147b41013
TMSP -> ABCI
8 years ago
Ethan Buchman
2dd7030579
tmsp: ResponseInfo and ResponseEndBlock
8 years ago
Ethan Buchman
e7a12f8e38
cs.Wait()
8 years ago
Ethan Buchman
0525e8ed5c
rearrange common_test.go; EnsureDir for privVal
8 years ago
Ethan Buchman
814ef37f75
fix tests
8 years ago
Ethan Buchman
3c589dac19
startConsensusNet and stopConsensusNet
8 years ago
Ethan Buchman
ce0c638005
little fix
8 years ago
Anton Kalyaev
535fc6cd63
test we can make blocks with skip_timeout_commit=false
8 years ago
Anton Kalyaev
3308ac7d83
set skip_timeout_commit to true for tests
For the tests its better to not use the timeout_commit, and to wait for all the
votes, because otherwise we can end up with timing dependencies in the testing
code which can lead to nondeterministic failures. That was part of the reason
for this change originally.
8 years ago
Anton Kalyaev
a1fd312bb1
make progress asap on full precommit votes optional (Refs #348 )
8 years ago
Ethan Buchman
d68cdce2d5
consensus: check HasAll when TwoThirdsMajority
8 years ago
Jae Kwon
43fdc4a1ce
Fix #341
8 years ago
Anton Kalyaev
cb2f2b94ee
log stages to stdout
8 years ago
Anton Kalyaev
4722410e5e
test validator set changes more extensively
8 years ago
Ethan Buchman
55b4bfa1fe
consensus: let time.Timer handle non-positive durations
8 years ago
Ethan Buchman
bae0bc02a6
consensus: be more explicit when we need to write height after handshake
8 years ago
Ethan Buchman
f30a9752e2
more fixes from review
8 years ago
Ethan Buchman
0c01b0ded9
state.State and wal.writeHeight after handshake
8 years ago
Ethan Buchman
e5fb681615
consensus: remove crankTimeoutPropose from tests
8 years ago
Ethan Buchman
c9698e4848
fixes from review
8 years ago