Commit Graph

93 Commits

Author SHA1 Message Date
028ee58580 call it LastResultsHash 2017-12-26 19:53:26 -05:00
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
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
3ea1145486 bring back test 2017-12-26 19:22:15 -05:00
b8215d8ac8 more test cases 2017-12-26 13:30:00 -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
35521b553a save historical consensus params 2017-12-21 17:46:25 -05:00
3d00c477fc separate block vs state based validation 2017-12-21 16:49:47 -05:00
0ffd60b8cf ValidatorSetUpdates -> ValidatorUpdates 2017-12-21 11:52:26 -06:00
843e1ed400 Updates -> ValidatoSetUpdates 2017-12-19 13:03:39 -06:00
030fd00232 Added tests for applying consensus param changes 2017-12-19 12:28:08 -05:00
4265a94bfe Update EndBlock parameters
* Update abci dependencies
* Modify references from Diffs to Changes
* Fixes issues #924
2017-12-19 12:28:08 -05:00
922af7c405 int64 height
uint64 is considered dangerous. the details will follow in a blog post.
2017-12-01 19:04:53 -06:00
b3492356e6 uint64 height (Refs #911) 2017-12-01 17:17:22 -05:00
f65e357d2b adapt Tendermint to new abci.Client interface
which was introduced in https://github.com/tendermint/abci/pull/130
2017-11-29 14:23:44 -06:00
a52cdbfe43 extract tags from DeliverTx/Result
and send them along with predefined
2017-11-29 14:23:43 -06:00
782a836db0 Cleanup of code and code docs
This cleans up some of the code in the state package
2017-10-23 11:04:45 -04:00
716364182d [state] expose ChainID and Params
```
jaekwon
Yeah we should definitely expose ChainID.
ConsensusParams is small enough, we can just write it.
```
https://github.com/tendermint/tendermint/pull/676#discussion_r144123203
2017-10-16 10:34:02 +04:00
1971e149fb ChainID() and Params() do not return errors
- remove state#GenesisDoc() method
2017-10-16 10:34:02 +04:00
7939d62ef0 all, state: unexpose GenesisDoc, ChainID fields make them accessor methods
Fixes #671

Unexpose GenesisDoc and ChainID fields to avoid them being
serialized to the DB on every block write/state.Save()

A GenesisDoc can now be alternatively written to the state's
database, by serializing its JSON as a value of key "genesis-doc".

There are now accessors and a setter for these attributes:
- state.GenesisDoc() (*types.GenesisDoc, error)
- state.ChainID() (string, error)
- state.SetGenesisDoc(*types.GenesisDoc)

This is a breaking change since it changes how the state's
serialization and requires that if loading the GenesisDoc entirely
from the database, you'll need to set its value in the database
as the GenesisDoc's JSON marshaled bytes.
2017-10-16 10:34:01 +04:00
d56b44f3a5 all: no more anonymous imports 2017-10-04 16:40:45 -04:00
779c2a22d0 node: NewNode takes DBProvider and GenDocProvider 2017-09-21 15:54:33 -04:00
870a98ccc3 Last fixes 2017-09-12 17:12:19 +02:00
8eda3efa28 Cleanup lines to fit within 72 characters 2017-09-12 17:08:30 +02:00
2a6e71a753 Reformat tests to extract common setup 2017-09-12 16:57:10 +02:00
fae0603413 more fixes from review 2017-09-06 01:25:57 -04:00
9deb647303 fixes from review 2017-09-04 18:29:51 -04:00
78446fd99c state: persist validators 2017-09-03 16:07:37 -04:00
f803544195 new logging 2017-05-13 10:24:58 +02:00
46151720f8 fix tests 2017-05-04 22:46:41 -04:00
4982cb4d1f fix tests for state and mempool 2017-05-04 22:43:55 -04:00
d1926bcad1 use tmlibs 2017-04-21 18:12:54 -04:00
5109746b1c Handshake uses ApplyBlock, no ConsensuState 2017-04-18 21:28:10 -04:00
4360c360a4 move handshake to state, use Handshaker, more tests 2016-11-16 13:29:22 -05:00
e12f9d10e7 Bare consensus refactor 2015-11-01 11:34:08 -08:00
e4f0e2b399 update namereg with longer names, more allowed chars 2015-09-15 19:43:22 -04:00
586498331b fix suicide 2015-08-26 18:02:13 -04:00
5bf0040f14 Parts -> PartsHeader; *_parts -> *_parts_header in sign_bytes 2015-08-12 22:36:43 -07:00
b96fd8a031 Beginning of complete merkle proofs 2015-08-11 14:12:30 -07:00
9965dd5de6 uint* to int* whereever appropriate; https://www.reddit.com/r/golang/comments/2q5vdu/int_vs_uint/ 2015-06-25 20:28:34 -07:00
9e1794eaea Fixed tests 2015-06-24 14:04:40 -07:00
01b5540ffe consensus/state is 2-step asynchronous 2015-06-19 15:30:21 -07:00
6eb8386c7c fixes for chain id in nametx sign functions 2015-05-30 01:54:25 -04:00
37a8a6cd65 remove name fix 2015-05-30 01:20:42 -04:00
77ff09e173 namereg cleanup, tests 2015-05-30 01:20:42 -04:00
cff6bcfb31 copy entry on get, use strings for name/data, uint64 for expires 2015-05-30 01:19:03 -04:00
8631d5085e name reg 2015-05-30 01:19:02 -04:00