Ethan Buchman
d55243f0e6
fix import paths
6 years ago
Ethan Buchman
9ff99114b1
update for tmlibs v0.9.0
6 years ago
Jae Kwon
bf0ff212b9
Refactor "lite" to handle delayed validator set changes.
Also, fix consensus liveness issue.
7 years ago
Jae Kwon
8128627f08
Optimizing blockchain reactor.
Should be paired with https://github.com/tendermint/iavl/pull/65 .
6 years ago
Liamsi
d2c05bc5b9
Revert "delete everything" (includes everything non-go-crypto)
This reverts commit 96a3502
6 years ago
Liamsi
96a3502126
delete everything
6 years ago
Anton Kaliaev
84812145cb
friendly apis for constructors
7 years ago
Anton Kaliaev
19699d644f
p2p metric, make height and totalTxs gauges
7 years ago
Ethan Buchman
3d33226e80
move types/services.go to state pkg. pass State to evpool.Update
7 years ago
Jae Kwon
fd6021876b
Potential fix for blockchain pool halting issue
7 years ago
Jae Kwon
f55725ebfa
Potential fix for blockchain pool halting issue
7 years ago
Alexander Simmerl
7b02b5b66b
Add RemoteIP to test implementation
7 years ago
Ethan Buchman
547e8223b9
fix
7 years ago
Ethan Buchman
1a1e4e767b
check max msg size in DecodeMessage
7 years ago
Ethan Buchman
c68d406195
fix tests
7 years ago
Jae Kwon
fb64314d1c
Review from Anton
7 years ago
Jae Kwon
e4492afbad
Merge
7 years ago
Jae Kwon
1b9323f105
Fix blockchain tests
7 years ago
Jae Kwon
196f8410ba
WIP commit; Fix types/results_test
7 years ago
Anton Kaliaev
701df09971
do not use keywords
Refs #1317
7 years ago
Anton Kaliaev
bcf54b0aa3
PanicSanity is deprecated
7 years ago
Anton Kaliaev
4242352852
stop peer on decoding error
7 years ago
Anton Kaliaev
f299689573
return back defaultChannelCapacity
7 years ago
Anton Kaliaev
baf457e6d4
return error if peer sent us a block we didn't expect with a height too far ahead/behind
7 years ago
Anton Kaliaev
0c7e871ef0
[blockchain] replace timeoutsCh with more abstract errorsCh
7 years ago
Anton Kaliaev
87ce804b4a
cmn.PanicSanity is deprecated
7 years ago
Anton Kaliaev
2a24ae90c1
fixes from Jae's review
1. remove pointer
2. add Quit() method to Service interface
7 years ago
Anton Kaliaev
0c1b91b762
revert back curRate != 0
7 years ago
Anton Kaliaev
c8990d06d9
remove curRate != 0
7 years ago
Anton Kaliaev
b0a55882b2
lower the minRecvRate
See https://github.com/tendermint/tendermint/issues/1177#issuecomment-363720118
7 years ago
Anton Kaliaev
d1fa44e816
improve "curRate too low" message
Refs #1177
Note on labels:
KB - 1024
kB - 1000
https://ux.stackexchange.com/questions/13815/files-size-units-kib-vs-kb-vs-kb
7 years ago
Anton Kaliaev
11b68f1934
rewrite broadcastTxRoutine to use channels
https://play.golang.org/p/gN21yO9IRs3
```
func waitWithCancel(f func() *clist.CElement, ctx context.Context) *clist.CElement {
el := make(chan *clist.CElement, 1)
select {
case el <- f():
```
will just run f() blockingly, so this doesn't change much in terms of behavior.
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
4051391039
blockchain: test wip for hard to test functionality [ci skip]
7 years ago
Ethan Buchman
ee674f919f
StopPeerForError in blockchain and consensus
7 years ago
Adrian Brink
0eb85161aa
More specification
7 years ago
Adrian Brink
940145b368
Bullet points for reactor and poolRoutine
7 years ago
Adrian Brink
a30315276b
Formatting and documentation
7 years ago
Ethan Buchman
3368eeb03e
fix tests
7 years ago
Ethan Buchman
a17105fd46
p2p: peer.Key -> peer.ID
7 years ago
Ethan Buchman
ae68fcb78a
move fireEvents to ApplyBlock
7 years ago
Ethan Buchman
1d6f00859d
fixes from review
7 years ago
Ethan Buchman
537b0dfa1a
use NopEventBus
7 years ago
Ethan Buchman
0acca7fe69
final updates for state
7 years ago
Ethan Buchman
bac60f2067
blockchain: update for new state
7 years ago
Ethan Buchman
869d873d5c
state.ApplyBlock takes evpool and calls MarkEvidenceAsCommitted
7 years ago
Ethan Buchman
3d00c477fc
separate block vs state based validation
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