Ismail Khoffi
6a80412a01
Remove privval.GetAddress(), memoize pubkey ( #2948 )
privval: remove GetAddress(), memoize pubkey
6 years ago
Ismail Khoffi
8888595b94
[R4R] Fixed sized and reordered fields for Vote/Proposal/Heartbeat SignBytes ( #2598 )
* WIP: switching to fixed offsets for SignBytes
* add version field to sign bytes and update order
* more comments on test-cases and add a tc with a chainID
* remove amino:"write_empty" tag
- it doesn't affect if default fixed size fields ((u)int64) are
written or not
- add comment about int->int64 casting
* update CHANGELOG_PENDING
* update documentation
* add back link to issue #1622 in documentation
* remove JSON tags and add (failing test-case)
* fix failing test
* update test-vectors due to added `Type` field
* change Type field from string to byte and add new type alias
- SignedMsgType replaces VoteTypePrevote, VoteTypePrecommit and adds new
ProposalType to separate votes from proposal when signed
- update test-vectors
* fix remains from rebasing
* use SignMessageType instead of byte everywhere
* fixes from review
6 years ago
Zarko Milosevic
7b88172f41
Implement BFT time ( #2203 )
* Implement BFT time
* set LastValidators when creating state in state helper
for heights >= 2
6 years ago
Anton Kaliaev
3ffda994c2
Revert "rename privval#GetAddress and GetPubKey to Address and PubKey"
This reverts commit 58d0c8de89
.
6 years ago
Anton Kaliaev
ff8ddee708
rename privval#GetAddress and GetPubKey to Address and PubKey
6 years ago
Zach Ramsay
44dad6d70b
Revert "detele everything"
This reverts commit d02c5d1e30
.
6 years ago
Zach Ramsay
d02c5d1e30
detele everything
6 years ago
Ethan Buchman
d55243f0e6
fix import paths
6 years ago
Liamsi
d2c05bc5b9
Revert "delete everything" (includes everything non-go-crypto)
This reverts commit 96a3502
6 years ago
Liamsi
96a3502126
delete everything
6 years ago
Jae Kwon
34974e3932
Make types use Amino; Refactor PrivValidator* to FilePV/SocketPV
6 years ago
Ethan Buchman
3d00c477fc
separate block vs state based validation
7 years ago
Ethan Frey
a29c781295
Add default timestamp to all instances of *types.Vote
7 years ago
Anton Kaliaev
922af7c405
int64 height
uint64 is considered dangerous. the details will follow in a blog post.
7 years ago
Anton Kaliaev
b3492356e6
uint64 height (Refs #911 )
7 years ago
Zach Ramsay
c84c7250ba
linting: few more fixes
7 years ago
Zach Ramsay
57ea4987f7
linting: apply errcheck part1
7 years ago
Zach Ramsay
d56b44f3a5
all: no more anonymous imports
7 years ago
Ethan Buchman
75b97a5a65
PrivValidatorFS is like old PrivValidator, for now
7 years ago
Ethan Buchman
4382c8d28b
fix tests
7 years ago
Ethan Buchman
fd1b0b997a
PrivValidator interface
7 years ago
Ethan Buchman
90c0267bc1
types: privVal.Sign returns an error
7 years ago
Ethan Buchman
6d83c60c40
[types] dont hash validator.Accum
7 years ago
Ethan Buchman
a70c95b79e
tmlibs/common/test -> tmlibs/test
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 Buchman
38783e7fa1
types: SignatureEd25519 -> Signature
8 years ago
Ethan Buchman
1b3766d802
types: canonical_json.go
8 years ago
Jae Kwon
1173a85c85
Use BlockID everywhere
8 years ago
Jae Kwon
40791d886d
Add test for new VoteSet
8 years ago
Jae Kwon
3c5a2f55c2
Add validator index and address to Vote.
8 years ago
Jae Kwon
ad17090a0f
No global config
8 years ago
Jae Kwon
f17c4c1d57
s/Validation/Commit/g
8 years ago
Jae Kwon
81ba1e6177
Use go-crypto's CRand*
8 years ago
Jae Kwon
03115cbf93
Fix tests; Tests run in their own directory
8 years ago
Jae Kwon
9247b0fbd2
Fix HeightVoteSet bug where first catchup vote doesn't get added
9 years ago
Ethan Buchman
28ec3d48fa
signer interface for validators
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
5bf0040f14
Parts -> PartsHeader; *_parts -> *_parts_header in sign_bytes
9 years ago
Jae Kwon
1b9fd811a1
RPCResponse.Result && EventData are registered interfaces; -skip_upnp option
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
01b5540ffe
consensus/state is 2-step asynchronous
9 years ago
Jae Kwon
5790ea9f43
consensus refactor: reconstruct LastCommits upon restart
9 years ago
Ethan Buchman
2045aee9cd
pass chainID through sign interfaces
9 years ago
Jae Kwon
489bf767cb
importing tendermint/config/tendermint_test applies the test config
9 years ago
Jae Kwon
75ef479547
Config is passed into each module. Remove tendermint/confer
9 years ago
Jae Kwon
13b6508ecd
Package import path change
9 years ago
Ethan Buchman
60f166e823
tendermint2
9 years ago