Ethan Buchman
6b8613b3e7
ResponseEndBlock: ensure Address matches PubKey if provided
7 years ago
Ethan Buchman
71556c62eb
fixes from rebase
7 years ago
Ethan Buchman
54e61468d4
fixes from review
7 years ago
Ethan Buchman
3d2c4fd309
update Evidence type - requires pubkey and valset to verify and convert to abci.Evidence
7 years ago
Ethan Buchman
866bcceb35
fix consensus tests
7 years ago
Ethan Buchman
e1e6878a4d
fix state tests
7 years ago
Ethan Buchman
485b4a0c6f
revert gogo
7 years ago
Ethan Buchman
575d94dbb9
state compiles
7 years ago
Ethan Buchman
97c5533c35
update some comments
7 years ago
Ethan Buchman
3d33226e80
move types/services.go to state pkg. pass State to evpool.Update
7 years ago
Ethan Buchman
dd62f06994
state: s -> state
7 years ago
Ethan Buchman
f1c53c7358
evidence: dont send evidence to unsynced peers
* only send evidence to peers that are synced enough to validate it all
* closes #1624
7 years ago
Anton Kaliaev
58e3246ffc
batch index txs
7 years ago
Jae Kwon
89cdde7f1e
Fix state tests
7 years ago
Ethan Buchman
f4feb7703b
fix appHash log. closes #1207
7 years ago
Anton Kaliaev
106cdb74e5
do not enforce 1/3 validator power change
leave it to the app
Refs #1022
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
Anton Kaliaev
5f3048bd09
call FlushSync before calling CommitSync
if we call it after, we might receive a "fresh" transaction from
`broadcast_tx_sync` before old transactions (which were not
committed).
Refs #1091
```
Commit is called with a lock on the mempool, meaning no calls to CheckTx
can start. However, since CheckTx is called async in the mempool
connection, some CheckTx might have already "sailed", when the lock is
released in the mempool and Commit proceeds.
Then, that spurious CheckTx has not yet "begun" in the ABCI app (stuck
in transport?). Instead, ABCI app manages to start to process the
Commit. Next, the spurious, "sailed" CheckTx happens in the wrong place.
```
7 years ago
Ethan Buchman
ee674f919f
StopPeerForError in blockchain and consensus
7 years ago
Ethan Buchman
28bbeac763
state: send byzantine validators in BeginBlock
7 years ago
Ethan Buchman
444db4c242
metalinter
7 years ago
Ethan Buchman
cb845ebff5
fix EvidencePool and VerifyEvidence
7 years ago
Ethan Buchman
6112578d07
ValidateBlock is a method on blockExec
7 years ago
Ethan Buchman
ae68fcb78a
move fireEvents to ApplyBlock
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
0f293bfc2b
remove some TODOs
7 years ago
Ethan Buchman
869d873d5c
state.ApplyBlock takes evpool and calls MarkEvidenceAsCommitted
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
df3f4de7c3
check evidence is from validator; some cleanup
7 years ago
Ethan Buchman
77e45756f2
types: Evidences for merkle hashing; Evidence.String()
7 years ago
Ethan Buchman
9cdcffbe4b
types: comments; compiles; evidence test
7 years ago
Ethan Buchman
35587658cd
verify evidence in block
7 years ago
Ethan Buchman
7928659f70
track evidence, include in block
7 years ago
Ethan Buchman
bfcb40bf6b
validate block.ValidatorsHash
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
58c5df729b
Add ResultHash to header
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