Commit Graph

541 Commits

Author SHA1 Message Date
57a83fe73e Merge branch 'develop' into feature/enhance-endblock 2017-12-20 00:11:57 -08:00
3798f9fa8e Reorder README 2017-12-20 00:07:58 -08:00
c14d3982ac ValidatorSetUpdates -> ValidatorUpdates 2017-12-20 00:02:41 -08:00
9a5b943e77 update changelog [ci skip] 2017-12-19 13:17:29 -06:00
811dc071aa protoc: "//nolint: gas" directive after pb generation (#164)
* protoc: "//nolint: gas" directive after pb generation

Fixes #138

Since we can't add package directives through the protoc
compiler, yet we need to "//nolint: gas" the Go generated
protobuf file, added a script whose purpose is to
go find the "package (\w+)$" declaration after go fmt
was run by protoc.

The competing solutions were more complex and can be
examined by visiting
https://github.com/tendermint/abci/issues/138#issuecomment-352226217

* simplify script

* rewrite script to work on Mac
2017-12-19 12:29:59 -06:00
66296fe11a updates -> validator_set_updates
ConsensusParamChanges -> ConsensusParamUpdates
2017-12-19 12:13:45 -06:00
843b10ed26 Merge pull request #157 from tendermint/linter-fix-v2
enable linter & make deterministic
2017-12-16 23:02:05 -06:00
dd7728c4c5 Merge pull request #161 from tendermint/fix-some-vet-issues
all: fix vet issues with build tags, formatting
2017-12-16 22:40:51 -06:00
e3d244091d cleanup requested from review by @melekes 2017-12-16 15:49:38 -07:00
eb6d412a82 Add tests to protobuf objects for pr coverage 2017-12-14 09:35:33 +01:00
9c5e1a824d Updated naming of EndBlock parameters
* Changes -> Updates for validators
* ConsensusParams.XXXParams -> ConsensusParams.XXX
* As per feedback from Jae on PR
2017-12-14 09:27:20 +01:00
895e14d6bd Update Diffs to Changes, fix README 2017-12-13 17:57:43 +01:00
25f6f6518c Update the ResponseEndBlock values
* Rename diffs -> changes
* Add consensus_param_changes

For context, see:
https://github.com/tendermint/tendermint/issues/924
https://github.com/tendermint/tendermint/issues/952
2017-12-13 17:50:24 +01:00
c532e8cabc add \n to Printf lines 2017-12-12 22:44:55 -06:00
bbc3b807c6 all: fix vet issues with build tags, formatting
* Build tags need to come before the package name
and have at least a blank line, between them and
the package, please see
  https://golang.org/pkg/go/build/#hdr-Build_Constraints
* fmt.Println doesn't take formatting verbs
* Fix a missing formatting argument to fmt.Printf
2017-12-12 17:23:16 -07:00
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

```
2017-12-12 16:57:51 -07:00
cabc516726 batch: progress 2017-12-12 16:57:51 -07:00
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
2017-12-12 16:57:51 -07:00
6633889632 Short-circuit assertions in test command 2017-12-12 21:06:56 +01:00
310beae63c types: check ResponseCheckTx too 2017-12-12 10:14:50 -05:00
7167d4e4c7 types: compile type assertions to avoid sneaky runtime surprises
Ensure that the types in result.go implement both
json.Marshaler and json.Unmarshaler
and thus avoid any accidental deletions of their respective
methods which would then cause surprises at runtime.
2017-12-12 01:15:39 -07:00
d6e821ea4f linter: enable in CI & make deterministic 2017-12-10 22:34:38 +00:00
fca2b508c1 Merge pull request #155 from tendermint/develop
v0.8.0 take II
2017-12-06 03:26:47 -05:00
47216538fd types: add UnmarshalJSON funcs for Response types 2017-12-06 03:19:28 -05:00
12dca48768 Merge pull request #154 from tendermint/develop
Release 0.8.0
2017-12-06 02:39:56 -05:00
293cf5e634 minor fix [ci skip] 2017-12-06 02:41:14 -05:00
f860c33515 changelog and version 2017-12-06 02:33:35 -05:00
e1ee4d6bf5 types: add MarshalJSON funcs for Response types with a Code 2017-12-06 01:56:39 -05:00
4b9cae8998 Merge pull request #151 from tendermint/set-option-code
ResponseSetOption includes a response Code. Closes #64"
2017-12-05 18:48:02 -05:00
1b2c383205 ResponseSetOption includes a response Code. Closes #64" 2017-12-05 18:41:52 -05:00
fff8e963f8 update readme 2017-12-05 17:45:26 -05:00
cfa14074df Merge branch 'server-test' into develop 2017-12-05 17:39:30 -05:00
f6e22e4296 update readme for notes about grpc 2017-12-05 17:22:06 -05:00
8357326db0 Fix test command 2017-12-05 18:28:15 +01:00
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.
2017-12-04 11:33:39 +01:00
48413b4839 Merge pull request #149 from tendermint/gogo-int
Gogo int
2017-12-02 11:52:50 -05:00
2b804bb5a1 remove custom type int https://github.com/gogo/protobuf/issues/359 2017-12-02 11:47:02 -05:00
9afd3da3b2 changelog 2017-12-02 01:56:21 -05:00
82d56571b5 types: int32 with gogo int 2017-12-02 01:48:46 -05:00
3890a2058f types: IsOK() 2017-12-02 01:48:37 -05:00
8831249e95 Merge pull request #147 from tendermint/int64
Int64
2017-12-01 16:12:20 -05:00
026ff5e89f Merge pull request #148 from tendermint/begin_block
Begin block
2017-12-01 16:11:49 -05:00
fc90b2de1c fix dummy test 2017-12-01 11:33:07 -05:00
b20273439d types: RequestBeginBlock includes absent and byzantine validators 2017-12-01 03:00:11 -05:00
9272756c49 types: add note about ReadMessage having no cap 2017-12-01 03:00:11 -05:00
3d3d1288d1 types: consolidate some file 2017-12-01 03:00:11 -05:00
b39e768a1a disable metalinter on CI 2017-12-01 02:50:17 -05:00
b7a75ce8c3 update readme 2017-12-01 01:16:00 -05:00
0ad7dea71f uint64 -> int64 2017-12-01 00:41:07 -05:00
b59fe60e65 abci-cli: prefix flag variables with flag 2017-12-01 00:35:14 -05:00