Commit Graph

165 Commits

Author SHA1 Message Date
Ethan Buchman c681347ee3 move genesis fields into RequestInitChain. some nullable=false 2018-05-31 23:58:02 -04:00
Ethan Buchman 512b3121a7 include genesis file structure 2018-05-31 21:59:20 -04:00
Ethan Buchman 90c3a469ff Revert "Merge pull request #247 from tendermint/bucky/no-gogo"
This reverts commit ef79007433, reversing
changes made to bcfdd6dbaf.
2018-05-31 21:45:14 -04:00
Ethan Buchman 01f87fd8d3 remove gogoproto 2018-05-24 00:13:43 -04:00
Ethan Buchman cfdec76020 update everything for Params and Result types 2018-05-23 23:27:46 -04:00
Ethan Buchman 5830c338ae Application uses new ParamsXxx and ResultXxx Types 2018-05-23 22:49:46 -04:00
Ethan Buchman 07a9ddb2d5 result.go is json.go and codetype.go 2018-05-23 22:49:13 -04:00
Ethan Buchman fac6bcd19e consolidate util.go and pubkey.go to validator.go 2018-05-23 22:46:15 -04:00
Ethan Buchman 3d4f3bbbdd varint -> uvarint for length prefix 2018-05-23 22:46:13 -04:00
Ethan Buchman 3dbdc87edb protoc and update everything 2018-05-23 22:24:39 -04:00
Ethan Buchman 8bb04d7ef7 Validator and SignedValidator 2018-05-23 22:20:24 -04:00
Ethan Buchman efbc2efb42 add proposer to header 2018-05-20 16:25:48 -04:00
Ethan Buchman 31576150ad add total_voting_power to evidence 2018-05-20 16:24:21 -04:00
Ethan Buchman 459ee59e46 Request/ResponseValidator, update Header 2018-05-20 16:15:58 -04:00
Christopher Goes e196dacf80
Add 'type' field to abci.Evidence 2018-05-18 20:29:32 +02:00
Christopher Goes 4c73ceee08
Add time field to abci.Evidence 2018-05-17 19:46:00 +02:00
Ethan Buchman 9b20287463 add tags to begin/end block 2018-05-14 19:01:49 -04:00
Ethan Buchman f7d775337b absent_validators: repeated int -> repeated bytes 2018-05-14 18:54:48 -04:00
Ethan Buchman 6f316db5de
Merge pull request #213 from tendermint/validators-type-assert-to-sortInterface
types: compile time assert to, and document sort.Interface
2018-05-14 18:37:57 -04:00
Adrian Brink f80b3aee48
Change AppStateBytes to GenesisBytes
The consensus should pass the entire genesis file to the application.
That way the application has access to the chain_id, the timestap, ...
2018-05-13 19:50:15 -04:00
Adrian Brink ef67705524
Allow ResponseInitChain to return the initial validator set
ResponseInitChain should be able to return an initial validator set that
is determined by some logic within the genesis.json file.
2018-05-13 19:04:03 -04:00
Ethan Buchman 8fc21cdcd9 remove omitempty 2018-03-22 23:59:25 -04:00
Ethan Buchman 5310e85bbb run make protoc 2018-03-22 23:46:23 -04:00
Ethan Buchman 4600f19d9f add nullable=false and omitempty to fee 2018-03-22 22:53:09 -04:00
Ethan Buchman e0c174b02b remove nullable=false from fee 2018-03-22 22:50:26 -04:00
Ethan Buchman 5306147a2d types: revert CheckTx/DeliverTx changes. make them the same 2018-03-22 19:11:34 -04:00
Ethan Buchman f7afa3d91f comment some fields in ResponseCheck/DeliverTx. closes #214 2018-03-13 13:40:41 +01:00
Emmanuel T Odeke 121f0d3fcf
types: compile time assert to, and document sort.Interface
Fixes #212

Declare the purpose of the Less, Len, Swap methods
so that readers can see why they are defined.

Raised by an auditor in their report, as it looked like a security
concern but actually sort.Interface requires those methods implemented.
2018-03-12 14:46:06 -07:00
Ethan Buchman a6be687088 types: RequestInitChain.AppStateBytes 2018-02-16 19:49:33 -05:00
Ethan Buchman 1148027baf remove go-wire and go-crypto deps 2018-02-03 02:39:34 -05:00
Ethan Buchman 4450a20bde types: check bufio.Reader 2018-02-03 00:24:48 -05:00
Ethan Buchman 11d383f1c7 update for go-wire sdk2 2018-02-02 23:56:19 -05:00
Jae Kwon 8f87efd7f8 ABCI message updates (code/log/info)
* Add info to Response[CheckTx/DeliverTx/Query]
* Remove code and log from Response[SetOption/Commit]
2017-12-26 15:46:06 -08:00
Jae Kwon 66580408f8 GasWanted and GasUsed for Check & Deliver 2017-12-26 05:29:33 -08:00
Jae Kwon e1ff53fd0b Use []byte instead of Bytes, use tmlibs/common.KVPair 2017-12-26 04:52:02 -08:00
Jae Kwon f390385baf
Fee is a KNPair (#167)
KVPair is {[]byte,[]byte}
2017-12-24 18:39:16 -08:00
Jae Kwon aaaacba1cd
Use gogoproto's nullable=false (#166)
* Use gogoproto's nullable=false where appropriate.
2017-12-22 19:41:19 -08:00
Jae Kwon e4b9f1abe7 Id -> ID using gogo 2017-12-20 17:33:59 -08:00
Jae Kwon 57a83fe73e
Merge branch 'develop' into feature/enhance-endblock 2017-12-20 00:11:57 -08:00
Jae Kwon 3798f9fa8e Reorder README 2017-12-20 00:07:58 -08:00
Jae Kwon c14d3982ac ValidatorSetUpdates -> ValidatorUpdates 2017-12-20 00:02:41 -08:00
Emmanuel T Odeke 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
Anton Kaliaev 66296fe11a
updates -> validator_set_updates
ConsensusParamChanges -> ConsensusParamUpdates
2017-12-19 12:13:45 -06:00
Ethan Frey eb6d412a82 Add tests to protobuf objects for pr coverage 2017-12-14 09:35:33 +01:00
Ethan Frey 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
Ethan Frey 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
Emmanuel Odeke 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
Ethan Buchman 310beae63c types: check ResponseCheckTx too 2017-12-12 10:14:50 -05:00
Emmanuel Odeke 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
Ethan Buchman 47216538fd types: add UnmarshalJSON funcs for Response types 2017-12-06 03:19:28 -05:00