Ethan Buchman
462b755a60
activate PEX reactor by default
7 years ago
Emmanuel Odeke
5ea42475ce
cmd/abci-cli: implement batch
Can now run batch which can be tested by:
```shell
echo -e "echo foo\necho blue" | abci-cli batch
```
giving
```shell
I[12-12|07:55:55.513] Starting socketClient
module=abci-client impl=socketClient
-> code: OK
-> data: foo
-> data.hex: 0x666F6F
-> code: OK
-> data: blue
-> data.hex: 0x626C7565
```
7 years ago
Zach Ramsay
cabc516726
batch: progress
7 years ago
Emmanuel Odeke
ecc13d5a8e
cmd/abci-cli: use a single connection per session
Use the single client connection at startup time
for sending over commands instead of shelling out
for every command.
This code fixes the regression from
https://github.com/tendermint/abci/pull/117
which instead used "os/exec".Command with:
"abci-cli <the_command> [args...]"
The purpose of this code is to restore us
back to the state after cobra replace urlfave/cli.
There is still a bit of work to implement Batch
itself, but that should be simpler as a focused
command.
Fixes #133
7 years ago
Krzysztof Jurewicz
6633889632
Short-circuit assertions in test command
7 years ago
Petabyte Storage
8be708fe5b
fix spelling and makefile gometalinter.v2
7 years ago
Ethan Buchman
11761d1769
initial port of cosmos-sdk basecli proxy
7 years ago
Anton Kaliaev
5ff0bb2100
default moniker to the host name (Refs #920 )
7 years ago
Ethan Buchman
47216538fd
types: add UnmarshalJSON funcs for Response types
7 years ago
Ethan Buchman
1b2c383205
ResponseSetOption includes a response Code. Closes #64"
7 years ago
Krzysztof Jurewicz
8357326db0
Fix test command
7 years ago
Adrian Brink
e99e6ea0c7
Extend abci-cli to allow integration tests
This commit adds the basic test command 'abci-cli test' that will
allow developers of server for their own language to continuously test
their implementation.
8 years ago
Ethan Buchman
b59fe60e65
abci-cli: prefix flag variables with flag
7 years ago
Ethan Buchman
ed393f9934
abci-cli: print OK if code is 0
7 years ago
Ethan Buchman
10031f57d5
fix grpc version; add log_level and some logging
7 years ago
Ethan Buchman
24fbe291ab
update glide; update services for new signature
7 years ago
Ethan Buchman
42a8e3240c
remove CodeType
7 years ago
Anton Kaliaev
69b5da766c
service#Start, service#Stop signatures were changed
See https://github.com/tendermint/tmlibs/issues/45
7 years ago
Ethan Buchman
9529f12c28
more linting
7 years ago
Zach Ramsay
d7cb291fb2
errcheck; sort some stuff out
7 years ago
Zach Ramsay
563faa98de
address comments, pr #643
7 years ago
Zach Ramsay
8f0237610e
linting errors: clean it all up
7 years ago
Zach Ramsay
57ea4987f7
linting: apply errcheck part1
7 years ago
Zach Ramsay
46ccbcbff6
linting: apply 'gofmt -s -w' throughout
7 years ago
Ethan Buchman
26d967af7e
linter
7 years ago
Ethan Buchman
fb612e5a7b
fixup tests
7 years ago
Ethan Buchman
c7f54fb56c
everything takes Request, returns Response; expect DeliverTx/CheckTx/Commit
7 years ago
Anton Kaliaev
f01f2bbf3a
DeliverTxSync/CheckTxSync/CommitSync now return error as well
7 years ago
Anton Kaliaev
5be9c50b47
fix megacheck warning
7 years ago
Anton Kaliaev
fbe7234639
remove Result from the client package
plus make Client interface more consistent. All *Sync functions now
return an error as a second return param. Deliver/Check/Commit use Code
to indicate errors and have IsErr() func defined on ResponseXYZ structs.
7 years ago
Anton Kaliaev
ecb1f02f77
add version cmd (Refs #124 )
7 years ago
Zach Ramsay
f013ee5cf9
cli: use cobra's new ExactArgs() feature
7 years ago
Zach Ramsay
461191d2f7
cli: clean up error handling
7 years ago
Zach Ramsay
36de70be10
console: fix output, closes #93
7 years ago
Zach Ramsay
3e61b8c17a
docs: comb through step by step
7 years ago
Zach Ramsay
3330cb4856
cleanup
7 years ago
Zach Ramsay
f9e14ad61b
disable PersistenPreRun for counter/dummy
7 years ago
Zach Ramsay
df5d9ac1bb
consolidate counter/dummy into the binary, #95
7 years ago
Zach Ramsay
9883013adf
use cobra, closes #101
7 years ago
Zach Ramsay
d56b44f3a5
all: no more anonymous imports
7 years ago
Ethan Buchman
667c2543ea
use request struct for Info
7 years ago
Zach Ramsay
6a378d30f3
linting: cover the basics
7 years ago
Ethan Buchman
756818f940
fixes from review
7 years ago
Ethan Buchman
2131f8d330
some fixes from review
7 years ago
Ethan Buchman
75b97a5a65
PrivValidatorFS is like old PrivValidator, for now
7 years ago
Ethan Buchman
779c2a22d0
node: NewNode takes DBProvider and GenDocProvider
7 years ago
Ethan Buchman
147a18b34a
fix some comments
7 years ago
Ethan Buchman
944ebccfe9
more PrivValidator interface
7 years ago
Ethan Buchman
fd1b0b997a
PrivValidator interface
7 years ago
Ethan Buchman
abe912c610
FuncSignerAndApp allows custom signer and abci app
7 years ago