Ethan Buchman
6046b99197
consensus: include evidence in proposed block parts. fixes #2050
6 years ago
ValarDragon
99e582d79a
crypto: Refactor to move files out of the top level directory
Currently the top level directory contains basically all of the code
for the crypto package. This PR moves the crypto code into submodules
in a similar manner to what `golang/x/crypto` does. This improves code
organization.
Ref discussion: https://github.com/tendermint/tendermint/pull/1966
Closes #1956
6 years ago
Anton Kaliaev
270659f03f
make Block Header and Data non-pointers
make BlockMeta Header a non-pointer
Refs #693
6 years ago
Anton Kaliaev
95980d944b
[types] add tests for Block and Commit
Refs #693
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
ec710395b7
RIPEMD160 -> SHA256
6 years ago
Ethan Buchman
d55243f0e6
fix import paths
6 years ago
Anton Kaliaev
9563927bbd
print only tx's hash and size when logging blocks
Closes #1799
6 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
Anton Kaliaev
489d9b9184
more metrics
7 years ago
Ethan Buchman
162811476a
update some comments
7 years ago
Jae Kwon
b42d5a2211
blockID -> block_id for JSON
7 years ago
Ethan Buchman
bb1b249e8a
types: lock block on MakePartSet
7 years ago
Jae Kwon
02531ca5a3
Fix race testing (cont;) Bump version to 0.19.0
7 years ago
Jae Kwon
d24e4cb821
Fix race testing
7 years ago
Jae Kwon
45ec5fd170
WIP consensus
7 years ago
Jae Kwon
1b9323f105
Fix blockchain tests
7 years ago
Ethan Buchman
39ff4d22e9
minor cleanup
7 years ago
Jae Kwon
89cdde7f1e
Fix state tests
7 years ago
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.
7 years ago
Jae Kwon
34974e3932
Make types use Amino; Refactor PrivValidator* to FilePV/SocketPV
7 years ago
Alex Hernandez
575a46d9d4
fix typo on block header ( #1387 )
7 years ago
Emmanuel T Odeke
8723c91db9
types: Hash invoked for nil Data and Header should not panic
Fixes https://github.com/tendermint/tendermint/issues/1298
Fixes https://github.com/tendermint/tendermint/issues/1299
Found while writing tests in https://github.com/tendermint/tendermint/pull/1300
7 years ago
Ethan Buchman
c394eef7b8
types: TestValidatorSetVerifyCommit
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 Buchman
7a5060dc52
replace data.Bytes with cmn.HexBytes
7 years ago
Ethan Buchman
4e3488c677
update types
7 years ago
Ethan Buchman
3271634e7a
types: evidence cleanup
7 years ago
Ethan Buchman
10c43c9edc
introduce evidence store
7 years ago
Ethan Buchman
7d086e9524
check if we already have evidence
7 years ago
Ethan Buchman
77e45756f2
types: Evidences for merkle hashing; Evidence.String()
7 years ago
Ethan Buchman
7928659f70
track evidence, include in block
7 years ago
Ethan Buchman
028ee58580
call it LastResultsHash
7 years ago
Ethan Buchman
73fb1c3a17
consolidate saveResults/SaveABCIResponses
7 years ago
Ethan Frey
58c5df729b
Add ResultHash to header
7 years ago
Ethan Buchman
3d00c477fc
separate block vs state based validation
7 years ago
Anton Kaliaev
843e1ed400
Updates -> ValidatoSetUpdates
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
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
Ethan Frey
8576ad58bd
Cleanup canonical json
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
Ethan Frey
f653ba63bf
Separated out certifiers.Commit from rpc structs
7 years ago
Zach Ramsay
62e8ec34d1
fix comment, #723
7 years ago
Adrian Brink
036d3b59a3
Address reviews
7 years ago