73fb1c3a17
consolidate saveResults/SaveABCIResponses
2017-12-26 19:24:45 -05:00
d65234ed51
Add /block_results?height=H as rpc endpoint
...
Expose it in rpc client
Move ABCIResults into tendermint/types from tendermint/state
2017-12-26 19:24:25 -05:00
58c5df729b
Add ResultHash to header
2017-12-26 19:24:25 -05:00
632cc918b4
Save/Load Results for every height
...
Add some tests.
Behaves like saving validator set, except it always saves at each height
instead of a reference to last changed.
2017-12-26 19:24:25 -05:00
f870a49f42
Add ABCIResults with Hash and Proof to State
...
State maintains LastResultsHash
Verify that we can produce unique hashes for each result,
and provide valid proofs from the root hash.
2017-12-26 19:24:25 -05:00
d844799b3b
Merge branch '950-enforce-less-13-val-changes-per-block' into develop
2017-12-26 19:22:21 -05:00
3ea1145486
bring back test
2017-12-26 19:22:15 -05:00
d4716fc03c
state
2017-12-26 18:43:03 -05:00
16227594ef
notes about block 1
2017-12-26 16:33:42 -05:00
65cdb07f0c
merkle
2017-12-26 15:48:17 -05:00
eb73e82279
encoding.md
2017-12-26 15:30:56 -05:00
d6fbfddddd
spec.md -> blockchain.md. some fixes
2017-12-26 15:30:27 -05:00
1339a44402
add safe*Clip funcs
2017-12-26 14:13:12 -06:00
b8215d8ac8
more test cases
2017-12-26 13:30:00 -06:00
289d92c97d
consensus: remove log stmt. closes #987
2017-12-26 10:41:31 -05:00
6c39c77fc5
Merge pull request #996 from ricardohsd/types-add-tests-to-vote
...
Add more tests to types/vote.go
2017-12-26 10:32:07 -05:00
69c3a7640b
add safeAdd & safeSub plus quickcheck tests
2017-12-25 18:39:14 -06:00
e8b0458f16
check for overflow and underflow while choosing proposer
...
Refs #919
2017-12-25 18:39:14 -06:00
6b89639f90
update docs 2 [ci skip]
2017-12-25 17:58:15 -06:00
9b25f7325a
update docs [ci skip]
2017-12-25 17:53:54 -06:00
0093f9877a
change voting power change, not number of vals
2017-12-25 17:49:36 -06:00
cf0b5d3715
enforce <1/3 validator updates
...
Refs #950
2017-12-25 12:10:53 -06:00
616f7e74db
Merge pull request #1001 from tendermint/makefile
...
Cleaned up makefile
2017-12-25 12:09:10 -05:00
14c812a39c
tmlibs timer fix
2017-12-25 11:11:55 -05:00
1e52751344
update tests for makefile
2017-12-25 10:24:41 -05:00
d7ac6e516a
Cleaned up makefile
2017-12-23 02:23:05 -08:00
c2436c46e6
Merge pull request #972 from tendermint/feature/enhance-endblock
...
Update EndBlock parameters
2017-12-22 01:30:58 -05:00
e3585a6eb0
wip: tendermint specification
2017-12-21 22:36:37 -05:00
38608b1b0f
comment and tmlibs fix
2017-12-21 18:32:40 -05:00
2b634dab32
Merge pull request #994 from tendermint/clean/block-validation
...
Clean/block validation
2017-12-21 17:53:11 -05:00
91acc51cd1
fix test
2017-12-21 17:52:06 -05:00
dc54ba67e4
state: TestValidateBlock
2017-12-21 17:51:03 -05:00
35521b553a
save historical consensus params
2017-12-21 17:46:25 -05:00
70a744558c
types: params.Update()
2017-12-21 17:00:52 -05:00
4b789ff7e9
another cmn fix
2017-12-21 16:49:47 -05:00
306657a118
no patience for metalinter right now
2017-12-21 16:49:47 -05:00
be765e4cb9
update glide for cmn fixes
2017-12-21 16:49:47 -05:00
b5857da877
forgot file
2017-12-21 16:49:47 -05:00
3ad055ef3a
fix randPort
2017-12-21 16:49:47 -05:00
3d00c477fc
separate block vs state based validation
2017-12-21 16:49:47 -05:00
c2912d612a
update glide
2017-12-21 16:49:47 -05:00
a3c7525249
Merge pull request #993 from tendermint/984-priv-validator-signing
...
priv validator returns last sign bytes if h/r/s matches
2017-12-21 16:30:22 -05:00
f81025631e
update comment [ci skip]
2017-12-21 16:28:05 -05:00
9c03c58de2
priv validator checks if only difference is timestamp; else error
2017-12-21 15:37:27 -05:00
0ffd60b8cf
ValidatorSetUpdates -> ValidatorUpdates
2017-12-21 11:52:26 -06:00
d5baa6601c
types: Add test for IsVoteTypeValid
2017-12-21 18:13:31 +01:00
19eeef0aad
types: Rename exampleVote to examplePrecommit on vote_test
...
exampleVote doesn't express the type of the vote.
2017-12-21 18:13:31 +01:00
e76392e330
types: Update String() test to assert Prevote type
2017-12-20 23:21:30 +01:00
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
2017-12-20 14:41:43 -06:00
67c3af3bf8
cmd/tendermint: fix initialization file creation checks ( #991 )
...
* cmd/tendermint: fix initialization file creation checks
Fixes #989 .
The original initialization sequence started to inexplicably
fail
```shell
tendermint unsafe_reset_all
tendermint init
tendermint node --proxy_app=dummy
```
used to fail with
```shell
ERROR: Failed to create node: Couldn't read GenesisDoc file: open
/Users/emmanuelodeke/.tendermint/genesis.json: no such file or directory
```
because the initialization sequence always assumed that the
genesisDoc would only be set if the privValidator was generated.
However, `tendermint unsafe_reset_all` only created the
`priv_validator.json` file which would mean that then running
`tendermint init` would never create the `genesis.json` file
which if following the recommended sequence would then fail
since the `genesis.json` was absent.
* cmd/tendermint: Load PrivValidatorFS if existent, lest generate it
Feedback from @melekes
* change logging messages for init cmd
Refs #989
2017-12-20 12:50:27 -06:00