Ismail Khoffi
b30c34e713
rename Accum -> ProposerPriority: ( #2932 )
- rename fields, methods, comments, tests
6 years ago
Jae Kwon
42592d9ae0
IncrementAccum upon RPC /validators; Sanity checks and comments ( #2808 )
6 years ago
Ethan Buchman
be929acd6a
Update to Amino v0.13.0-rc0 ( #2687 )
* types: test tm2pm on fully populated header
* upgrade for amino v0.13.0-rc0
* fix lint
* comment out final test
6 years ago
Ethan Buchman
fe1d59ab7b
Set protocol versions in NodeInfo from state ( #2686 )
* use types.NewValidator
* node: set p2p.ProtocolVersion from state, not globals
6 years ago
Ethan Buchman
ed4ce5ff6c
ADR-016: Update ABCI Info method for versions ( #2662 )
* abci: update RequestInfo for versions
* abci: update ResponseInfo for versions
* compile fix
* fix test
* software_version -> version
* comment fix
* update spec
* add test
* comments and fix test
6 years ago
Ethan Buchman
455d34134c
ADR-016: Add versions to Block and State ( #2644 )
* types: add Version to Header
* abci: add Version to Header
* state: add Version to State
* node: check software and state protocol versions match
* update changelog
* docs/spec: update for versions
* state: more tests
* remove TODOs
* remove empty test
6 years ago
Anton Kaliaev
e1538bf67e
state: require block.Time of the fist block to be genesis time ( #2594 )
* require block.Time of the fist block to be genesis time
Refs #2587 :
```
We only start validating block.Time when Height > 1, because there is no
commit to compute the median timestamp from for the first block. This
means a faulty proposer could make the first block with whatever time
they want.
Instead, we should require the timestamp of block 1 to match the genesis
time.
I discovered this while refactoring the ValidateBlock tests to be
table-driven while working on tests for #2560 .
```
* do not accept blocks with negative height
* update changelog and spec
* nanos precision for test genesis time
* Fix failing test (#2607 )
6 years ago
Alessio Treglia
3744e8271d
[R4R] Pass nil to NewValidatorSet() when genesis file's Validators field is nil ( #2617 )
* Pass nil to NewValidatorSet() when genesis file's Validators field is nil
Closes : #2616
* Update CHANGELOG_PENDING.md
6 years ago
Anton Kaliaev
0e1cd88863
Remove ConsensusParams.TxSize and ConsensusParams.BlockGossip ( #2364 )
* remove ConsensusParams.TxSize and ConsensusParams.BlockGossip
Refs #2347
* block part size is now fixed
Refs #2347
* use max data size, not max bytes for tx limit
Refs #2347
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
e1062a657f
fixes for ProposerAddress
- state.MakeBlock takes a proposerAddr
- validateBlock only checks that the ProposerAddress is in the validator
set
- fix raceyness from bad proposer test:
- use privValidator to get the proposer address (instead of racy
state)
- note we had to remove the test that checked the correct proposer was
included for higher rounds because we don't have a good way to test
this with multiple consensus states and not using the
privValidator.Address while calling createProposalBlock was a hack!
6 years ago
Anton Kaliaev
bec9d5cba9
add proposer address to block's Header
Refs #1134
Validation:
- ignored in block.ValidateBasic since it's stateful information
- checked in blockExec.ValidateBlock
6 years ago
Ethan Buchman
6046b99197
consensus: include evidence in proposed block parts. fixes #2050
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
a5b7ea93c4
Delay validator set changes by 1 block.
7 years ago
Liamsi
d2c05bc5b9
Revert "delete everything" (includes everything non-go-crypto)
This reverts commit 96a3502
6 years ago
Liamsi
96a3502126
delete everything
7 years ago
Ethan Buchman
dd62f06994
state: s -> state
7 years ago
Jae Kwon
89cdde7f1e
Fix state tests
7 years ago
Ethan Buchman
eaafd9d61c
state: builds
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
9e6d088757
state: BlockExecutor
7 years ago
Ethan Buchman
c915719f85
*State->State; SetBlockAndValidators->NextState
7 years ago
Ethan Buchman
f55135578c
state: move methods to funcs
7 years ago
Ethan Buchman
6a4fd46479
fixes from rebase
7 years ago
Ethan Buchman
cc418e5dab
state.VerifyEvidence enforces EvidenceParams.MaxAge
7 years ago
Ethan Buchman
3271634e7a
types: evidence cleanup
7 years ago
Ethan Buchman
6c4a0f9363
cleanup evidence pkg. state.VerifyEvidence
7 years ago
Ethan Buchman
051c2701ab
remove LastConsensusParams
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
58c5df729b
Add ResultHash to header
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
35521b553a
save historical consensus params
7 years ago
Ethan Buchman
70a744558c
types: params.Update()
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
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
56cada6a0c
Validate ConsensusParams returned from abci app
7 years ago
Ethan Frey
030fd00232
Added tests for applying consensus param changes
7 years ago
Ethan Frey
d21f39160f
Apply ConsensusParamChanges to state/State
7 years ago
Ethan Frey
4265a94bfe
Update EndBlock parameters
* Update abci dependencies
* Modify references from Diffs to Changes
* Fixes issues #924
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