Anton Kaliaev
b31ee798bd
preserve original address and dial it instead of self-reported address ( #1994 )
...
Refs #1720
2018-07-18 13:23:29 +04:00
Dev Ojha
dae7dc30e0
Switch usage of math/rand to cmn's rand ( #1980 )
...
This commit switches all usage of math/rand to cmn's rand. The only
exceptions are within the random file itself, the tools package, and the
crypto package. In tools you don't want it to lock between the go-routines.
The crypto package doesn't use it so the crypto package have no other
dependencies within tendermint/tendermint for easier portability.
Crypto/rand usage is unadjusted.
Closes #1343
2018-07-16 11:20:37 +04:00
Anton Kaliaev
9120fd5d14
unexport DecodeMessage functions
...
Refs #646
2018-07-09 13:01:23 +04:00
Ethan Buchman
d55243f0e6
fix import paths
2018-07-01 22:36:49 -04:00
Ethan Buchman
9ff99114b1
update for tmlibs v0.9.0
2018-07-01 22:12:58 -04:00
Liamsi
d2c05bc5b9
Revert "delete everything" (includes everything non-go-crypto)
...
This reverts commit 96a3502
2018-06-20 17:35:30 -07:00
Liamsi
96a3502126
delete everything
2018-06-20 15:19:08 -07:00
Ethan Buchman
3d33226e80
move types/services.go to state pkg. pass State to evpool.Update
2018-06-04 21:20:23 -07:00
Jae Kwon
f55725ebfa
Potential fix for blockchain pool halting issue
2018-05-26 22:08:42 -07:00
Ethan Buchman
caf5afc084
Merge pull request #1520 from tendermint/bucky/p2p-same-ip
...
p2p: prevent connections from same ip
2018-05-23 20:57:17 -04:00
Alexander Simmerl
7b02b5b66b
Add RemoteIP to test implementation
2018-05-21 17:41:34 +02:00
Ethan Buchman
547e8223b9
fix
2018-05-17 15:24:37 -04:00
Ethan Buchman
1a1e4e767b
check max msg size in DecodeMessage
2018-04-09 15:18:47 +03:00
Ethan Buchman
c68d406195
fix tests
2018-04-07 19:47:19 +03:00
Ethan Buchman
c170800fbd
Merge branch 'develop' into jae/aminoify
2018-04-07 16:16:53 +03:00
Jae Kwon
fb64314d1c
Review from Anton
2018-04-06 13:46:40 -07:00
Jae Kwon
e4492afbad
Merge
2018-04-05 08:17:10 -07:00
Jae Kwon
1b9323f105
Fix blockchain tests
2018-04-05 05:17:43 -07:00
Jae Kwon
196f8410ba
WIP commit; Fix types/results_test
2018-04-03 07:03:08 -07:00
Anton Kaliaev
701df09971
do not use keywords
...
Refs #1317
2018-03-19 13:16:02 +03:00
Anton Kaliaev
bcf54b0aa3
PanicSanity is deprecated
2018-03-15 11:58:20 +04:00
Anton Kaliaev
4242352852
stop peer on decoding error
2018-03-15 11:58:19 +04:00
Anton Kaliaev
f299689573
return back defaultChannelCapacity
2018-03-15 11:58:19 +04:00
Anton Kaliaev
baf457e6d4
return error if peer sent us a block we didn't expect with a height too far ahead/behind
2018-03-15 11:58:19 +04:00
Anton Kaliaev
0c7e871ef0
[blockchain] replace timeoutsCh with more abstract errorsCh
2018-03-15 11:58:19 +04:00
Anton Kaliaev
87ce804b4a
cmn.PanicSanity is deprecated
2018-03-15 11:58:19 +04:00
Anton Kaliaev
2a24ae90c1
fixes from Jae's review
...
1. remove pointer
2. add Quit() method to Service interface
2018-02-12 14:32:09 +04:00
Anton Kaliaev
0c1b91b762
revert back curRate != 0
2018-02-09 13:02:44 +04:00
Anton Kaliaev
c8990d06d9
remove curRate != 0
2018-02-09 12:01:13 +04:00
Anton Kaliaev
b0a55882b2
lower the minRecvRate
...
See https://github.com/tendermint/tendermint/issues/1177#issuecomment-363720118
2018-02-09 12:01:12 +04:00
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
2018-02-09 12:01:12 +04:00
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.
2018-02-05 16:36:26 +04:00
Ethan Buchman
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
Ethan Buchman
4051391039
blockchain: test wip for hard to test functionality [ci skip]
2018-01-23 22:27:33 -05:00
Ethan Buchman
ee674f919f
StopPeerForError in blockchain and consensus
2018-01-21 13:32:04 -05:00
Adrian Brink
0eb85161aa
More specification
2018-01-21 12:35:09 -05:00
Adrian Brink
940145b368
Bullet points for reactor and poolRoutine
2018-01-21 12:32:45 -05:00
Adrian Brink
a30315276b
Formatting and documentation
2018-01-21 12:32:23 -05:00
Ethan Buchman
3368eeb03e
fix tests
2018-01-14 01:19:07 -05:00
Ethan Buchman
a17105fd46
p2p: peer.Key -> peer.ID
2018-01-01 22:39:05 -05:00
Ethan Buchman
ae68fcb78a
move fireEvents to ApplyBlock
2017-12-28 23:15:54 -05:00
Ethan Buchman
1d6f00859d
fixes from review
2017-12-28 23:15:54 -05:00
Ethan Buchman
537b0dfa1a
use NopEventBus
2017-12-28 23:15:54 -05:00
Ethan Buchman
0acca7fe69
final updates for state
2017-12-28 23:15:54 -05:00
Ethan Buchman
bac60f2067
blockchain: update for new state
2017-12-28 23:15:54 -05:00
Ethan Buchman
869d873d5c
state.ApplyBlock takes evpool and calls MarkEvidenceAsCommitted
2017-12-26 20:27:32 -05:00
Ethan Buchman
3d00c477fc
separate block vs state based validation
2017-12-21 16:49:47 -05:00
Anton Kaliaev
843e1ed400
Updates -> ValidatoSetUpdates
2017-12-19 13:03:39 -06:00
Ethan Frey
960b25408f
Store LastConsensusHash in State as well
...
Update all BlockValidation that it matches the last state
2017-12-19 12:28:08 -05:00
Ethan Frey
d151e36ea8
Add ConsensusHash to header
2017-12-19 12:28:08 -05:00