Ismail Khoffi
fc073746a0
privval: Switch to amino encoding in SignBytes ( #2459 )
* switch to amino for SignBytes and add Reply with error message
- currently only Vote is done
* switch Reply type in socket for other messages
- add error description on error
* add TODOs regarding error handling
* address comments from peer review session (thx @xla )
- contains all changes besides the test-coverage / error'ing branches
* increase test coverage:
- add tests for each newly introduced error'ing code path
* return error if received wrong response
* add test for wrong response branches (ErrUnexpectedResponse)
* update CHANGELOG_PENDING and related documentation (spec)
* fix typo: s/CanonicallockID/CanonicalBlockID
* 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
Ethan Buchman
309a6772d7
types: fix formatting when printing signatures
- use cmn.Fingerprint and %X
6 years ago
ValarDragon
f903947ff3
crypto: Remove interface from crypto.Signature
Signatures are now []byte, which saves on the number of bytes after
amino encoding
(squash this) address Ismail's comment
6 years ago
Zach Ramsay
44dad6d70b
Revert "detele everything"
This reverts commit d02c5d1e30
.
6 years ago
Zach Ramsay
d02c5d1e30
detele everything
6 years ago
Jae Kwon
bf0ff212b9
Refactor "lite" to handle delayed validator set changes.
Also, fix consensus liveness issue.
7 years ago
Liamsi
d2c05bc5b9
Revert "delete everything" (includes everything non-go-crypto)
This reverts commit 96a3502
7 years ago
Liamsi
96a3502126
delete everything
7 years ago
Jae Kwon
34974e3932
Make types use Amino; Refactor PrivValidator* to FilePV/SocketPV
7 years ago
Ethan Buchman
3395f5fb0e
types: builds
7 years ago
Ethan Buchman
200787ede2
types: update for new go-wire. WriteSignBytes -> SignBytes
7 years ago
Ethan Frey
599673690c
Add timestamp to vote canonical encoding
7 years ago
Ethan Frey
7deda53b7c
Add Timestamp to Proposal for issue #929
Store it as time.Timestamp locally, encode it as RFC3339 with milliseconds
before signing the canonical form.
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
d56b44f3a5
all: no more anonymous imports
7 years ago
Ethan Buchman
d1a00c684e
types: comments
7 years ago
Ethan Buchman
d1926bcad1
use tmlibs
8 years ago
Ethan Buchman
5da9b3a803
postmerge
8 years ago
Ethan Buchman
0017fb7ffe
premerge
8 years ago
Ethan Buchman
1b3766d802
types: canonical_json.go
8 years ago
zachary balder
da8b043612
sign bytes w struct literals
8 years ago
Jae Kwon
655d829314
Fix proposal sign bytes. Start tracking blockID in POL
8 years ago
Jae Kwon
ef43af19ab
Tendermint <-> Application refactor
9 years ago
Jae Kwon
d69b5c5ab6
Conform to go-wire 1.0
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
Jae Kwon
3be3647dc8
tendermint/binary -> tendermint/wire
9 years ago
Jae Kwon
1e7cc32597
tendermint/account -> acm
9 years ago
Jae Kwon
9965dd5de6
uint* to int* whereever appropriate; https://www.reddit.com/r/golang/comments/2q5vdu/int_vs_uint/
10 years ago
Jae Kwon
9b96e2e171
ProposalPOLRound...
10 years ago
Jae Kwon
01b5540ffe
consensus/state is 2-step asynchronous
10 years ago
Ethan Buchman
41502e05c1
chain_id written as string not hex in WriteSignBytes
10 years ago
Ethan Buchman
2045aee9cd
pass chainID through sign interfaces
10 years ago
Ethan Buchman
8a2d9525f0
network > chain_id, put in genesis.json
10 years ago
Jae Kwon
75ef479547
Config is passed into each module. Remove tendermint/confer
10 years ago
Jae Kwon
85c8850ac2
Config names have no dots, are under_scored.
10 years ago
Jae Kwon
b92c0401e6
Made all JSON fields lower_case
10 years ago
Jae Kwon
5366d808ba
Proposal WriteSignBytes is JSON
10 years ago
Jae Kwon
2ba6f86f2e
Add Network to SignBytes, to prevent network clashes
10 years ago
Jae Kwon
13b6508ecd
Package import path change
10 years ago
Ethan Buchman
60f166e823
tendermint2
10 years ago
Jae Kwon
87e1f76324
tendermint/block -> tendermint/types and tendermint/blockchain
10 years ago
Jae Kwon
0a6c28c2da
block module -> import as blk
10 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
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
83d313cbe5
Refactor Tx, Validator, and Account structure
10 years ago