Thomas Corbière
2644a529f0
Fix lint errors ( #1390 )
* use increment and decrement operators.
* remove unnecessary else branches.
* fix package comment with leading space.
* fix receiver names.
* fix error strings.
* remove omittable code.
* remove redundant return statement.
* Revert changes (code is generated.)
* use cfg as receiver name for all config-related types.
* use lsi as the receiver name for the LastSignedInfo type.
6 years ago
Jae Kwon
34974e3932
Make types use Amino; Refactor PrivValidator* to FilePV/SocketPV
6 years ago
Ethan Buchman
c394eef7b8
types: TestValidatorSetVerifyCommit
6 years ago
Ethan Buchman
f9921ae362
types/validator_set_test: move funcs around
6 years ago
Ethan Buchman
abeeeeb611
types: fix validator_set_test issue with UnmarshalBinary into ptr
6 years ago
Ethan Buchman
3395f5fb0e
types: builds
6 years ago
Ethan Buchman
d2cd079541
types: tests build
7 years ago
Anton Kaliaev
1339a44402
add safe*Clip funcs
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
Zach Ramsay
46ccbcbff6
linting: apply 'gofmt -s -w' throughout
7 years ago
Ethan Buchman
e76ef2a8a1
types: unexpose valset.To/FromBytes
7 years ago
Anton Kaliaev
616b07ff6b
make AppOptions an interface{}
7 years ago
Ethan Buchman
d1926bcad1
use tmlibs
7 years ago
Ethan Buchman
5da9b3a803
postmerge
7 years ago
Ethan Buchman
0017fb7ffe
premerge
7 years ago
Ethan Frey
6d223d5526
Update to latest go-crypto
7 years ago
Ethan Frey
516e78ea54
Fix types to use updated go-crypto
7 years ago
Ethan Buchman
b1cd677711
types: valSet LastProposer->Proposer and Proposer()->GetProposer()
7 years ago
Ethan Buchman
0fa34f7f67
fix ProposerSelection by persisting proposer
7 years ago
Ethan Buchman
55602b9be6
failing ProposerSelection test
7 years ago
Ethan Buchman
6f8c91b651
use NewValidator; fix setPrivValidatorIndex
8 years ago
Ethan Buchman
209bcf905e
proposer selection tests. closes #53
9 years ago
Jae Kwon
e12f9d10e7
Bare consensus refactor
9 years ago
Jae Kwon
c4ed55d801
Refactor to move common libraries out of project
9 years ago
Jae Kwon
1b9fd811a1
RPCResponse.Result && EventData are registered interfaces; -skip_upnp option
9 years ago
Ethan Buchman
dc7b912881
crypto byte arrays are fixed length
9 years ago
Jae Kwon
bc71e38bad
proposer selection fix
9 years ago
Jae Kwon
9965dd5de6
uint* to int* whereever appropriate; https://www.reddit.com/r/golang/comments/2q5vdu/int_vs_uint/
9 years ago
Jae Kwon
5bdd73f4a4
New genesis.json
9 years ago
Jae Kwon
13b6508ecd
Package import path change
9 years ago
Ethan Buchman
60f166e823
tendermint2
9 years ago
Jae Kwon
ab0ee97c18
ValidatorSet copy benchmark
9 years ago
Jae Kwon
135894ea88
Dot import -> named import
Changed modulename_ to short module names
Also removed Unreader, replaced with PrefixdReader in select locations
10 years ago
Jae Kwon
7a8a0fefc7
type Ed25519[Signature|PubKey] struct{[]byte} -> []byte
10 years ago
Jae Kwon
383335d93c
Added README docs for account/binary and renamed UInt -> Uint etc.
10 years ago
Jae Kwon
61d1635085
Fixed tests
10 years ago
Jae Kwon
810aeb7bcb
fix tests
10 years ago