Anton Kaliaev
106cdb74e5
do not enforce 1/3 validator power change
leave it to the app
Refs #1022
7 years ago
Ethan Buchman
d34286c421
minor fixes - tests pass
7 years ago
Ethan Buchman
cd0fd06b0d
update for sdk2 libs. need to fix kv test
NOTE we only updating for tmlibs and abci
7 years ago
Ethan Buchman
1d6f00859d
fixes from review
7 years ago
Ethan Buchman
0acca7fe69
final updates for state
7 years ago
Ethan Buchman
f82b7e2a13
state: re-order funcs. fix tests
7 years ago
Ethan Buchman
f55135578c
state: move methods to funcs
7 years ago
Ethan Buchman
028ee58580
call it LastResultsHash
7 years ago
Ethan Buchman
73fb1c3a17
consolidate saveResults/SaveABCIResponses
7 years ago
Ethan Frey
d65234ed51
Add /block_results?height=H as rpc endpoint
Expose it in rpc client
Move ABCIResults into tendermint/types from tendermint/state
7 years ago
Ethan Frey
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.
7 years ago
Ethan Frey
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.
7 years ago
Ethan Buchman
3ea1145486
bring back test
7 years ago
Anton Kaliaev
b8215d8ac8
more test cases
7 years ago
Anton Kaliaev
0093f9877a
change voting power change, not number of vals
7 years ago
Anton Kaliaev
cf0b5d3715
enforce <1/3 validator updates
Refs #950
7 years ago
Ethan Buchman
35521b553a
save historical consensus params
7 years ago
Ethan Buchman
3d00c477fc
separate block vs state based validation
7 years ago
Anton Kaliaev
0ffd60b8cf
ValidatorSetUpdates -> ValidatorUpdates
7 years ago
Anton Kaliaev
843e1ed400
Updates -> ValidatoSetUpdates
7 years ago
Ethan Frey
030fd00232
Added tests for applying consensus param changes
7 years ago
Ethan Frey
4265a94bfe
Update EndBlock parameters
* Update abci dependencies
* Modify references from Diffs to Changes
* Fixes issues #924
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
Anton Kaliaev
f65e357d2b
adapt Tendermint to new abci.Client interface
which was introduced in https://github.com/tendermint/abci/pull/130
7 years ago
Anton Kaliaev
a52cdbfe43
extract tags from DeliverTx/Result
and send them along with predefined
7 years ago
Adrian Brink
782a836db0
Cleanup of code and code docs
This cleans up some of the code in the state package
7 years ago
Anton Kaliaev
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
7 years ago
Anton Kaliaev
1971e149fb
ChainID() and Params() do not return errors
- remove state#GenesisDoc() method
7 years ago
Emmanuel Odeke
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.
7 years ago
Zach Ramsay
d56b44f3a5
all: no more anonymous imports
7 years ago
Ethan Buchman
779c2a22d0
node: NewNode takes DBProvider and GenDocProvider
7 years ago
Adrian Brink
870a98ccc3
Last fixes
7 years ago
Adrian Brink
8eda3efa28
Cleanup lines to fit within 72 characters
7 years ago
Adrian Brink
2a6e71a753
Reformat tests to extract common setup
7 years ago
Ethan Buchman
fae0603413
more fixes from review
7 years ago
Ethan Buchman
9deb647303
fixes from review
7 years ago
Ethan Buchman
78446fd99c
state: persist validators
7 years ago
Anton Kaliaev
f803544195
new logging
8 years ago
Ethan Buchman
46151720f8
fix tests
8 years ago
Ethan Buchman
4982cb4d1f
fix tests for state and mempool
8 years ago
Ethan Buchman
d1926bcad1
use tmlibs
8 years ago
Ethan Buchman
5109746b1c
Handshake uses ApplyBlock, no ConsensuState
8 years ago
Ethan Buchman
4360c360a4
move handshake to state, use Handshaker, more tests
8 years ago
Jae Kwon
e12f9d10e7
Bare consensus refactor
9 years ago
Ethan Buchman
e4f0e2b399
update namereg with longer names, more allowed chars
9 years ago
Ethan Buchman
586498331b
fix suicide
9 years ago
Jae Kwon
5bf0040f14
Parts -> PartsHeader; *_parts -> *_parts_header in sign_bytes
10 years ago
Jae Kwon
b96fd8a031
Beginning of complete merkle proofs
10 years ago
Jae Kwon
9965dd5de6
uint* to int* whereever appropriate; https://www.reddit.com/r/golang/comments/2q5vdu/int_vs_uint/
10 years ago