Ethan Buchman
77e45756f2
types: Evidences for merkle hashing; Evidence.String()
7 years ago
Ethan Buchman
9cdcffbe4b
types: comments; compiles; evidence test
7 years ago
Ethan Buchman
50850cf8a2
verify sigs on both votes; note about indices
7 years ago
Ethan Buchman
35587658cd
verify evidence in block
8 years ago
Ethan Buchman
4661c98c17
add pubkey to conflicting vote evidence
8 years ago
Ethan Buchman
7928659f70
track evidence, include in block
8 years ago
Ethan Buchman
028ee58580
call it LastResultsHash
7 years ago
Ethan Buchman
73fb1c3a17
consolidate saveResults/SaveABCIResponses
7 years ago
Ethan Frey
d65234ed51
Add /block_results?height=H as rpc endpoint
Expose it in rpc client
Move ABCIResults into tendermint/types from tendermint/state
7 years ago
Ethan Frey
58c5df729b
Add ResultHash to header
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
Anton Kaliaev
1339a44402
add safe*Clip funcs
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
Anton Kaliaev
69c3a7640b
add safeAdd & safeSub plus quickcheck tests
7 years ago
Anton Kaliaev
e8b0458f16
check for overflow and underflow while choosing proposer
Refs #919
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
Ethan Buchman
91acc51cd1
fix test
7 years ago
Ethan Buchman
35521b553a
save historical consensus params
7 years ago
Ethan Buchman
70a744558c
types: params.Update()
7 years ago
Ethan Buchman
b5857da877
forgot file
7 years ago
Ethan Buchman
3d00c477fc
separate block vs state based validation
7 years ago
Ethan Buchman
f81025631e
update comment [ci skip]
7 years ago
Ethan Buchman
9c03c58de2
priv validator checks if only difference is timestamp; else error
7 years ago
Anton Kaliaev
0ffd60b8cf
ValidatorSetUpdates -> ValidatorUpdates
7 years ago
Ricardo Domingos
d5baa6601c
types: Add test for IsVoteTypeValid
7 years ago
Ricardo Domingos
19eeef0aad
types: Rename exampleVote to examplePrecommit on vote_test
exampleVote doesn't express the type of the vote.
7 years ago
Jae Kwon
e4b9f1abe7
Id -> ID using gogo
7 years ago
Ricardo Domingos
e76392e330
types: Update String() test to assert Prevote type
7 years ago
Anton Kaliaev
a1cc9ac642
priv validator returns last sign bytes if h/r/s matches
since now we have time in the msgs and we might crash between writing
the priv val and writing to wal.
Refs #984
7 years ago
Jae Kwon
3798f9fa8e
Reorder README
7 years ago
Jae Kwon
c14d3982ac
ValidatorSetUpdates -> ValidatorUpdates
7 years ago
Anton Kaliaev
843e1ed400
Updates -> ValidatoSetUpdates
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
960b25408f
Store LastConsensusHash in State as well
Update all BlockValidation that it matches the last state
7 years ago
Ethan Frey
d151e36ea8
Add ConsensusHash to header
7 years ago
Ethan Frey
a0b2d77bef
Add hash to ConsensusParams
7 years ago
Ethan Frey
030fd00232
Added tests for applying consensus param changes
7 years ago
Ethan Frey
d21f39160f
Apply ConsensusParamChanges to state/State
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
Anton Kaliaev
72da553ed9
add missing Timestamp to Vote
Fixes #974
7 years ago
Ethan Frey
a6f719a402
Add tests for block validation
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
Ethan Frey
dedf03bb81
Add TotalTx to block header, issue #952
Update state to keep track of this info.
Change function args as needed.
Make NumTx also an int64 for consistency.
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
Ethan Frey
5ffb5f01cc
Add more tests for Proposal/Vote serialization
String() and Proposal valid after serializing.
To be safe, but mainly to increase test coverage for the PR
7 years ago