Ethan Buchman
9a1a6c56b4
dont expose makePersistent
8 years ago
Ethan Buchman
b6f744c732
fix AddPeerWithConnection
8 years ago
Ethan Buchman
a9bb6734e7
SetDeadline for authEnc. Stop peer if Add fails
8 years ago
Ethan Frey
e4e17a2c95
Play well with go-{rpc,crypto,data}:develop
8 years ago
Anton Kaliaev
8bb3a2e1d7
persistent peers (Refs #13 )
8 years ago
Anton Kaliaev
f88d56b2f8
add glide
8 years ago
Anton Kaliaev
5b0489cdb4
use plain struct instead of go-config
8 years ago
Anton Kaliaev
b8a939a894
test non persistent mconnection
8 years ago
Anton Kaliaev
2b02843453
remove unused const
8 years ago
Anton Kaliaev
5be72672fe
use golang time datatype instead of time units in name
8 years ago
Anton Kaliaev
549d3bd09a
tests for MConnection
8 years ago
Anton Kaliaev
868017cf1a
import go-common as cmn
8 years ago
Anton Kaliaev
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
```
8 years ago
Anton Kaliaev
63704454a3
expose `/tx?hash="XXXXXXXXXXXX"` RPC call
8 years ago
Anton Kaliaev
b08f29cb71
add config option for tx indexing and disable it by default
8 years ago
Anton Kaliaev
d62e85757f
execution test
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
fc95c9872f
Merge pull request #438 from tendermint/replay-fix
consensus: timeout on replayLastBlock
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
Anton Kaliaev
ba5382b70e
open result&error channels on start
8 years ago
Anton Kaliaev
b0d2032488
use BaseService.OnReset method to recreate channels
8 years ago
Ethan Buchman
162fbdd17b
Merge pull request #419 from tendermint/cli_cobra
added use of Cobra CLI
8 years ago
Ethan Buchman
0413a87eb4
fix typo
8 years ago
Ethan Buchman
c1dc1a1a45
Merge pull request #437 from tendermint/feature/431-data-flag
rename TMROOT to TMHOME
8 years ago
Ethan Buchman
077cf13a1f
consensus: timeout on replayLastBlock
8 years ago
Anton Kaliaev
a416c37ebd
Merge pull request #12 from tendermint/close-ws-connection
close ws connection on Stop
8 years ago
Anton Kaliaev
12ead6cc7e
make changes backwards compatible (Refs #431 )
8 years ago
Anton Kaliaev
5f6de800a0
rename TMROOT to TMHOME (Refs #431 )
8 years ago
Anton Kaliaev
d6587be7bc
[WSClient] allow for multiple restarts
needed for 3044f66ba9
See https://github.com/tendermint/tools/issues/6
8 years ago
Anton Kaliaev
afc39febed
close ws connection on Stop
8 years ago
Anton Kaliaev
b54b9b4ecc
update url to network monitor [ci skip] [circleci skip]
8 years ago
Anton Kaliaev
5d19a008ce
add Call method to WSClient, which does proper encoding of params
8 years ago
Anton Kaliaev
3233c9c003
WSClient failed to "echo_bytes"
Error:
```
Expected nil, but got: encoding/hex: invalid byte: U+0078 'x'
```
8 years ago
Anton Kaliaev
c88257b038
rename rpc function status to echo
echo means we're returning the input, which is exactly what this
function does.
8 years ago
Anton Kaliaev
0874c72819
refactor tests
8 years ago
Anton Kaliaev
d66ebbd904
use testify package
8 years ago
Anton Kaliaev
1a3573bf17
Merge pull request #10 from tendermint/feature/4-rename-http-clients
rename ClientURI -> URIClient, ClientJSONRPC -> JSONRPCClient
8 years ago
Anton Kaliaev
e6c083f589
rename ClientURI -> URIClient, ClientJSONRPC -> JSONRPCClient (Refs #4 )
8 years ago
Anton Kaliaev
759060f47e
Merge pull request #9 from tendermint/feature/8-http-interface-and-1-key-value-params-json-rpc
support key-value params in JSONRPC
8 years ago
Ethan Frey
715f78e26a
Properly encode json.RawMessage
8 years ago
Anton Kaliaev
db69845ded
introduce errors pkg
8 years ago
Anton Kaliaev
ff90224ba8
fix "Expected map but got type string" error
Error from tendermint:
```
panic: Expected map but got type string [recovered]
panic: Expected map but got type string
goroutine 82 [running]:
testing.tRunner.func1(0xc420464000)
/usr/local/go/src/testing/testing.go:622 +0x29d
panic(0xa1fda0, 0xc4201eecd0)
/usr/local/go/src/runtime/panic.go:489 +0x2cf
github.com/tendermint/tendermint/rpc/test.waitForEvent(0xc420464000, 0xc420064000, 0xae6fae, 0x8, 0xae6f01, 0xc2e998, 0xc2e9a0)
/home/vagrant/go/src/github.com/tendermint/tendermint/rpc/test/helpers.go:179 +0x53a
github.com/tendermint/tendermint/rpc/test.TestWSNewBlock(0xc420464000)
/home/vagrant/go/src/github.com/tendermint/tendermint/rpc/test/client_test.go:190 +0x12e
testing.tRunner(0xc420464000, 0xc2e9a8)
/usr/local/go/src/testing/testing.go:657 +0x96
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:697 +0x2ca
```
8 years ago
Anton Kaliaev
720b74d89e
read from ErrorsCh also
8 years ago
Anton Kaliaev
05e1a22d5b
encode params before sending in JSONRPC
8 years ago
Anton Kaliaev
cf11e6ba65
add CHANGELOG
8 years ago
Anton Kaliaev
1ddb60b6e7
refactor jsonParamsToArgs
Suggested in https://github.com/tendermint/go-rpc/pull/9#discussion_r105098390
8 years ago
Ethan Buchman
5420254b36
changelog: add prehistory
8 years ago
Ethan Buchman
55b3c22d99
publish.sh to push build to s3
8 years ago