Ethan Buchman
fcf78a5da7
cleanup go-config/viper and some unnamed imports
2017-04-25 14:54:56 -04:00
Rigel Rozanski
cefb2bede0
adding viper
...
int
int
2017-04-25 13:42:22 -04:00
Ethan Buchman
d1926bcad1
use tmlibs
2017-04-21 18:12:54 -04:00
Ethan Buchman
29a893b193
update comment
2017-04-18 21:28:11 -04:00
Ethan Buchman
935f70a346
comments and cleanup
2017-04-18 21:28:10 -04:00
Ethan Buchman
5109746b1c
Handshake uses ApplyBlock, no ConsensuState
2017-04-18 21:28:10 -04:00
Ethan Buchman
1684ec163f
ABCIResponses not needed as field in state
2017-04-18 21:27:50 -04:00
Ethan Buchman
3a973b80ac
update glide
2017-04-18 21:27:31 -04:00
Ethan Buchman
cb279bf662
state: ABCIResponses, s.Save() in ApplyBlock
2017-04-18 21:27:31 -04:00
Ethan Buchman
d572bb0c5d
state/txindex and pkg per indexer impl
2017-04-18 19:29:02 -04:00
Anton Kaliaev
63704454a3
expose /tx?hash="XXXXXXXXXXXX"
RPC call
2017-04-10 22:44:07 +04:00
Anton Kaliaev
b08f29cb71
add config option for tx indexing and disable it by default
2017-04-10 22:44:07 +04:00
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
2017-04-10 22:44:07 +04:00
Ethan Buchman
7228b11e3f
state: remove StateIntermediate
2017-02-17 19:13:35 -05:00
Jae Kwon
67ab574e98
Cleanup, add stub for VerifyCommitAny
2017-01-29 13:50:53 -08:00
Ethan Buchman
0e7694ca94
state: AppHashIsStale -> IntermediateState
2016-12-22 15:01:22 -05:00
Jae Kwon
6f88d04ac4
call db.SetSync when necessary
2016-12-06 02:52:07 -08:00
Ethan Buchman
0fe53dc5cf
remove privValIndex; Stale->AppHashIsStale
2016-12-02 00:27:36 -05:00
Ethan Buchman
e0db20c0cf
update privValidatorIndex on valset change
2016-11-22 20:38:14 -05:00
Ethan Buchman
655b6300f5
val set changes
2016-11-22 20:38:14 -05:00
Ethan Buchman
07597dfd45
post rebase fixes for BlockID, partSize
2016-11-16 16:13:17 -05:00
Ethan Buchman
4360c360a4
move handshake to state, use Handshaker, more tests
2016-11-16 13:29:22 -05:00
Ethan Buchman
8ec1839f5d
save block b4 apply; track stale apphash
2016-11-16 13:26:39 -05:00
Ethan Buchman
d3ae920bd0
state: ApplyBlock
2016-11-16 13:25:13 -05:00
Ethan Buchman
a0e4253edc
handshake
2016-11-16 13:25:13 -05:00
Jae Kwon
1173a85c85
Use BlockID everywhere
2016-11-15 18:34:58 -05:00
Jae Kwon
3e3c0083c7
Make order be decided first; Remove TMSP Commit/Rollback
2016-01-08 16:51:20 -08:00
Ethan Buchman
b9e143d956
Fireable -> EventSwitch; rs in EventDataRoundState; fixes from review
2015-12-14 00:38:19 -05:00
Jae Kwon
ef43af19ab
Tendermint <-> Application refactor
2015-12-01 20:12:01 -08:00
Jae Kwon
d69b5c5ab6
Conform to go-wire 1.0
2015-11-10 13:10:43 -08:00
Jae Kwon
e12f9d10e7
Bare consensus refactor
2015-11-01 11:34:08 -08:00
Jae Kwon
c4ed55d801
Refactor to move common libraries out of project
2015-10-22 17:39:06 -07:00
Ethan Buchman
b59ed8c9d2
refactor some state functions into state/types
2015-10-05 20:21:02 -04:00
Jae Kwon
b96fd8a031
Beginning of complete merkle proofs
2015-08-11 14:12:30 -07:00
Jae Kwon
1b9fd811a1
RPCResponse.Result && EventData are registered interfaces; -skip_upnp option
2015-08-11 11:01:18 -07:00
Jae Kwon
3be3647dc8
tendermint/binary -> tendermint/wire
2015-07-28 12:18:17 -07:00
Jae Kwon
0ef5c3ad07
Fix returning prematurely within if(runCall){...}.
...
Renames
2015-07-28 12:16:17 -07:00
Ethan Buchman
8e50bf15de
panic wrapper functions
2015-07-21 10:46:05 -04:00
Jae Kwon
1e7cc32597
tendermint/account -> acm
2015-07-19 09:40:55 -07:00
Jae Kwon
21295f4ae2
fixes for develop+permissions merge
2015-07-07 14:17:20 -07:00
Ethan Buchman
75fb6c184e
getter/setters for state trees
2015-07-07 14:10:38 -07:00
Ethan Buchman
a0f3b94e83
account permissions and some gendoug
2015-07-07 14:07:07 -07:00
Ethan Buchman
a7ecdd10de
Merge from panic branch
2015-06-29 14:54:48 -07:00
Jae Kwon
9965dd5de6
uint* to int* whereever appropriate; https://www.reddit.com/r/golang/comments/2q5vdu/int_vs_uint/
2015-06-25 20:28:34 -07:00
Jae Kwon
01b5540ffe
consensus/state is 2-step asynchronous
2015-06-19 15:30:21 -07:00
Jae Kwon
1a652a1cbb
Fix usage of SimpleProof for PartSet
2015-06-18 22:08:22 -07:00
Ethan Buchman
cff6bcfb31
copy entry on get, use strings for name/data, uint64 for expires
2015-05-30 01:19:03 -04:00
Ethan Buchman
8631d5085e
name reg
2015-05-30 01:19:02 -04:00
Ethan Buchman
8a2d9525f0
network > chain_id, put in genesis.json
2015-05-29 18:14:19 -04:00
Ethan Buchman
65f669160f
more fixes from review
2015-04-17 13:18:50 -07:00