Ethan Buchman
9b20287463
add tags to begin/end block
7 years ago
Ethan Buchman
f7d775337b
absent_validators: repeated int -> repeated bytes
7 years ago
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, ...
7 years ago
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.
7 years ago
Ethan Buchman
8fc21cdcd9
remove omitempty
7 years ago
Ethan Buchman
5310e85bbb
run make protoc
7 years ago
Ethan Buchman
4600f19d9f
add nullable=false and omitempty to fee
7 years ago
Ethan Buchman
e0c174b02b
remove nullable=false from fee
7 years ago
Ethan Buchman
5306147a2d
types: revert CheckTx/DeliverTx changes. make them the same
7 years ago
Ethan Buchman
f7afa3d91f
comment some fields in ResponseCheck/DeliverTx. closes #214
7 years ago
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.
7 years ago
Ethan Buchman
a6be687088
types: RequestInitChain.AppStateBytes
7 years ago
Ethan Buchman
1148027baf
remove go-wire and go-crypto deps
7 years ago
Ethan Buchman
4450a20bde
types: check bufio.Reader
7 years ago
Ethan Buchman
11d383f1c7
update for go-wire sdk2
7 years ago
Jae Kwon
8f87efd7f8
ABCI message updates (code/log/info)
* Add info to Response[CheckTx/DeliverTx/Query]
* Remove code and log from Response[SetOption/Commit]
7 years ago
Jae Kwon
66580408f8
GasWanted and GasUsed for Check & Deliver
7 years ago
Jae Kwon
e1ff53fd0b
Use []byte instead of Bytes, use tmlibs/common.KVPair
7 years ago
Jae Kwon
f390385baf
Fee is a KNPair ( #167 )
KVPair is {[]byte,[]byte}
7 years ago
Jae Kwon
aaaacba1cd
Use gogoproto's nullable=false ( #166 )
* Use gogoproto's nullable=false where appropriate.
7 years ago
Jae Kwon
e4b9f1abe7
Id -> ID using gogo
7 years ago
Jae Kwon
3798f9fa8e
Reorder README
7 years ago
Jae Kwon
c14d3982ac
ValidatorSetUpdates -> ValidatorUpdates
7 years ago
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
7 years ago
Anton Kaliaev
66296fe11a
updates -> validator_set_updates
ConsensusParamChanges -> ConsensusParamUpdates
7 years ago
Ethan Frey
eb6d412a82
Add tests to protobuf objects for pr coverage
7 years ago
Ethan Frey
9c5e1a824d
Updated naming of EndBlock parameters
* Changes -> Updates for validators
* ConsensusParams.XXXParams -> ConsensusParams.XXX
* As per feedback from Jae on PR
7 years ago
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
7 years ago
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
7 years ago
Ethan Buchman
310beae63c
types: check ResponseCheckTx too
7 years ago
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.
7 years ago
Ethan Buchman
47216538fd
types: add UnmarshalJSON funcs for Response types
7 years ago
Ethan Buchman
e1ee4d6bf5
types: add MarshalJSON funcs for Response types with a Code
7 years ago
Ethan Buchman
1b2c383205
ResponseSetOption includes a response Code. Closes #64"
7 years ago
Ethan Buchman
2b804bb5a1
remove custom type int https://github.com/gogo/protobuf/issues/359
7 years ago
Ethan Buchman
82d56571b5
types: int32 with gogo int
7 years ago
Ethan Buchman
3890a2058f
types: IsOK()
7 years ago
Ethan Buchman
b20273439d
types: RequestBeginBlock includes absent and byzantine validators
7 years ago
Ethan Buchman
9272756c49
types: add note about ReadMessage having no cap
7 years ago
Ethan Buchman
3d3d1288d1
types: consolidate some file
7 years ago
Ethan Buchman
0ad7dea71f
uint64 -> int64
7 years ago
Ethan Buchman
e3f6666ecc
update changelog; add rudis script for safe keeping
7 years ago
Ethan Buchman
81e4effbdb
types: use data.Bytes directly in type.proto via gogo/protobuf. wow
7 years ago
Ethan Buchman
308cb8e454
use gogo/protobuf
7 years ago
Ethan Buchman
42a8e3240c
remove CodeType
7 years ago
Anton Kaliaev
20befcf6d6
add 2 helper methods for building KVPair(s)
7 years ago
Ethan Buchman
ab51bdef99
types.pb.go isnt linted. use nolint :(
7 years ago
Ethan Buchman
e08885e3cd
minor fix
7 years ago
Ethan Buchman
7dc5b746ac
types: add gas and fee fields to CheckTx
7 years ago
Ethan Buchman
c7f54fb56c
everything takes Request, returns Response; expect DeliverTx/CheckTx/Commit
7 years ago