Commit Graph

6539 Commits

Author SHA1 Message Date
7fbe8e47d4 fix tests 2017-04-10 17:32:48 -04:00
d7c5690f17 index by bytes. add TxID to broadcast_tx responses 2017-04-10 17:21:37 -04:00
d3069b0f5b Update abci develop 2017-04-10 22:46:03 +02:00
31eafe8f8e Update dependencies to newest develop branches 2017-04-10 22:24:54 +02:00
ebd3929c0d Merge pull request #18 from tendermint/13-reconnect-to-seeds
persistent peers (Refs 13)
2017-04-10 16:21:02 -04:00
9a1a6c56b4 dont expose makePersistent 2017-04-10 16:05:00 -04:00
b6f744c732 fix AddPeerWithConnection 2017-04-10 16:03:14 -04:00
a9bb6734e7 SetDeadline for authEnc. Stop peer if Add fails 2017-04-10 16:02:01 -04:00
e4e17a2c95 Play well with go-{rpc,crypto,data}:develop 2017-04-10 21:16:41 +02:00
8bb3a2e1d7 persistent peers (Refs #13) 2017-04-10 22:47:05 +04:00
f88d56b2f8 add glide 2017-04-10 22:47:04 +04:00
5b0489cdb4 use plain struct instead of go-config 2017-04-10 22:46:49 +04:00
b8a939a894 test non persistent mconnection 2017-04-10 22:46:48 +04:00
2b02843453 remove unused const 2017-04-10 22:46:48 +04:00
5be72672fe use golang time datatype instead of time units in name 2017-04-10 22:46:48 +04:00
549d3bd09a tests for MConnection 2017-04-10 22:46:48 +04:00
868017cf1a import go-common as cmn 2017-04-10 22:46:48 +04:00
3478de50a1 no need for map - tx responses should arrive in order (Refs #237)
```
me: so we are executing them in order and receiving them in order and there is no way we could receive them out of order (due to network or something else), correct?
ebuchman: if we receive them out of order, ABCI is broken
ebuchman: so it is possible, if the ABCI server we're talking to is not implementing the spec
ebuchman: but that shouldn't justify us building a map
```
2017-04-10 22:44:08 +04:00
63704454a3 expose /tx?hash="XXXXXXXXXXXX" RPC call 2017-04-10 22:44:07 +04:00
b08f29cb71 add config option for tx indexing and disable it by default 2017-04-10 22:44:07 +04:00
d62e85757f execution test 2017-04-10 22:44:07 +04:00
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
c410fc5e24 Add extra test for encoding with sig,for p2p test fail 2017-04-10 19:51:02 +02:00
aecc32d363 Make dependencies explicit in glide.yaml 2017-04-10 19:51:02 +02:00
9e57d521ef Add type assertions for sig/pub/privkey implemenetations 2017-04-10 19:51:02 +02:00
f17e6bf44c Fix bitcoin addr scheme 2017-04-10 19:51:02 +02:00
926741c0a1 remove coin param 2017-04-10 19:51:02 +02:00
a3324cc97b Cleanup; Implement .Wrap() 2017-04-10 19:51:02 +02:00
eb6fcef8d2 Better docs and naming thanks to bucky 2017-04-10 19:51:01 +02:00
5b94758d4c Make PubKey struct compatible with go-wire.JSONBytes/ReadJSON 2017-04-10 19:51:01 +02:00
66ecd7705f Use new naming scheme PubKey{PubKeyInner} 2017-04-10 19:51:01 +02:00
750b25c47a Update go-data, test embedding strategies 2017-04-10 19:41:30 +02:00
49569ac244 Wrap constructor to create xxxS structs and avoid recursion 2017-04-10 19:41:30 +02:00
fc95c9872f Merge pull request #438 from tendermint/replay-fix
consensus: timeout on replayLastBlock
2017-04-10 10:33:48 -04:00
e49fdf7be7 Add HD functions 2017-04-08 22:57:59 -07:00
c94c1ff89a [ansible-tendermint] add missing handler to readme 2017-04-04 18:28:12 +04:00
294292f586 [ansible-tendermint] specify what this role does 2017-04-04 18:25:50 +04:00
4911c66b6d Merge pull request #25 from tendermint/23-tendermint-seeds
[ansible-tendermint] tendermint_validators variable (Refs #23)
2017-04-04 13:11:07 +04:00
667e92e635 [ansible-tendermint] tendermint_validators variable (Refs #23) 2017-04-04 13:04:34 +04:00
aa0fa0e6d8 Merge pull request #26 from tendermint/24-more-config-variables
[ansible-tendermint] more configuration options (Refs #24)
2017-04-04 13:01:22 +04:00
19e332840b [ansible-tendermint] more configuration options (Refs #24) 2017-04-04 12:58:22 +04:00
649a485275 [ansible-tendermint] systemd template 2017-04-03 21:01:41 +04:00
4c4bce9469 [mintnet-kubernetes] use tr -d as per Frey suggestion 2017-04-03 15:03:13 +04:00
2feff1ea16 Commented the empty table in c_level_db, and cleaned up the mem_db Value call. 2017-04-01 15:44:41 -04:00
121926d898 [ansible-tendermint] quick fix for #22 2017-03-31 21:53:24 +04:00
5e5968801c [ansible-tendermint] make seeds explicit 2017-03-31 21:49:13 +04:00
4750dbba77 [ansible-tendermint] rename playbook for clarity 2017-03-31 21:31:46 +04:00
5e56b2ea0e [ansible-tendermint] add TOC 2017-03-31 21:23:42 +04:00
f33edeb23a [ansible-tendermint] add image 2017-03-31 21:18:45 +04:00
a8d530dfda change title 2017-03-31 21:09:35 +04:00