cd0fd06b0d
update for sdk2 libs. need to fix kv test
...
NOTE we only updating for tmlibs and abci
2018-02-03 03:35:02 -05:00
57cc8ab977
Merge pull request #1143 from tendermint/1091-race-condition
...
call FlushSync before calling CommitSync
2018-01-24 14:22:43 -05:00
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.
```
2018-01-23 16:56:14 +04:00
ee674f919f
StopPeerForError in blockchain and consensus
2018-01-21 13:32:04 -05:00
28bbeac763
state: send byzantine validators in BeginBlock
2017-12-29 11:26:55 -05:00
444db4c242
metalinter
2017-12-28 23:15:54 -05:00
cb845ebff5
fix EvidencePool and VerifyEvidence
2017-12-28 23:15:54 -05:00
6112578d07
ValidateBlock is a method on blockExec
2017-12-28 23:15:54 -05:00
ae68fcb78a
move fireEvents to ApplyBlock
2017-12-28 23:15:54 -05:00
1d6f00859d
fixes from review
2017-12-28 23:15:54 -05:00
0acca7fe69
final updates for state
2017-12-28 23:15:54 -05:00
f82b7e2a13
state: re-order funcs. fix tests
2017-12-28 23:15:54 -05:00
9e6d088757
state: BlockExecutor
2017-12-28 23:15:54 -05:00
c915719f85
*State->State; SetBlockAndValidators->NextState
2017-12-28 23:15:54 -05:00
f55135578c
state: move methods to funcs
2017-12-28 23:15:54 -05:00
6a4fd46479
fixes from rebase
2017-12-26 20:42:34 -05:00
0f293bfc2b
remove some TODOs
2017-12-26 20:27:40 -05:00
869d873d5c
state.ApplyBlock takes evpool and calls MarkEvidenceAsCommitted
2017-12-26 20:27:32 -05:00
3271634e7a
types: evidence cleanup
2017-12-26 20:26:21 -05:00
6c4a0f9363
cleanup evidence pkg. state.VerifyEvidence
2017-12-26 20:26:21 -05:00
df3f4de7c3
check evidence is from validator; some cleanup
2017-12-26 20:25:14 -05:00
77e45756f2
types: Evidences for merkle hashing; Evidence.String()
2017-12-26 20:21:17 -05:00
9cdcffbe4b
types: comments; compiles; evidence test
2017-12-26 20:21:17 -05:00
35587658cd
verify evidence in block
2017-12-26 20:21:17 -05:00
7928659f70
track evidence, include in block
2017-12-26 20:21:17 -05:00
bfcb40bf6b
validate block.ValidatorsHash
2017-12-26 20:00:45 -05:00
051c2701ab
remove LastConsensusParams
2017-12-26 19:56:39 -05:00
028ee58580
call it LastResultsHash
2017-12-26 19:53:26 -05:00
73fb1c3a17
consolidate saveResults/SaveABCIResponses
2017-12-26 19:24:45 -05:00
58c5df729b
Add ResultHash to header
2017-12-26 19:24:25 -05: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
960b25408f
Store LastConsensusHash in State as well
...
Update all BlockValidation that it matches the last state
2017-12-19 12:28:08 -05:00
d151e36ea8
Add ConsensusHash to header
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
7f649ccf23
fixes from Frey's review
2017-12-15 12:21:15 -06:00
d669816a1b
send absent validators in BeginBlock
...
Refs #668
2017-12-15 12:13:02 -06:00
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.
2017-12-13 12:20:53 +01:00
9af8da7aad
update for new abci int types
2017-12-02 01:47:55 -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
e9f8e56895
fixes from rebase
2017-12-01 17:25:44 -05:00
b3492356e6
uint64 height (Refs #911 )
2017-12-01 17:17:22 -05:00
1e19860585
fixes from my own review
2017-11-29 14:24:18 -06: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
29cd1a1b8f
rewrite indexer to be a listener of eventBus
2017-11-29 14:23:44 -06:00
acae38ab9e
validate tags
2017-11-29 14:23:43 -06:00