1a1e4e767b
check max msg size in DecodeMessage
2018-04-09 15:18:47 +03:00
c68d406195
fix tests
2018-04-07 19:47:19 +03:00
02c0835e9b
fixes post merge
2018-04-07 16:25:10 +03:00
c170800fbd
Merge branch 'develop' into jae/aminoify
2018-04-07 16:16:53 +03:00
5d8767e656
p2p: don't use dial funcn in peerconfig
2018-04-07 12:51:51 +05:30
54adb790f2
p2p: switch - reconnect only if persistent
2018-04-07 11:46:48 +05:30
fb64314d1c
Review from Anton
2018-04-06 13:46:40 -07:00
3d32474da8
make linter happy
2018-04-06 13:26:05 +02:00
3233c318ea
only log errors, dial correct addresses
...
"this means if there are lookup errors or typos in the persistent_peers,
tendermint will fail to start ? didn't some one ask for us not to do
this previously ?"
2018-04-06 12:35:48 +02:00
6e39ec6e26
do not even try to dial ourselves
...
also, remove address from the book (plus mark it as our address)
and return an error if we fail to parse peers list
2018-04-05 15:45:52 +02:00
7f6ee7a46b
add a comment for NewSwitch
2018-04-05 15:27:47 +02:00
34b77fcad4
log error when we fail to add new address
2018-04-05 15:27:47 +02:00
3b3f45d49b
use addrbook#AddOurAddress to store our address
2018-04-05 15:27:47 +02:00
3284a13fee
add test
...
Refs #1275
2018-04-05 15:27:47 +02:00
fc9ffee2e3
remove unused tracking because it leads to memory leaks in tests
...
see https://blog.cosmos.network/debugging-the-memory-leak-in-tendermint-210186711420
2018-04-05 15:27:47 +02:00
4b8e342309
fix panic: lookup testing on 10.0.2.3:53: no such host
2018-04-05 15:27:46 +02:00
5a2fa71b03
use combination of IP and port, not just IP
2018-04-05 15:27:46 +02:00
9a57ef9cbf
do not dial ourselves (ok, maybe just once)
...
Refs #1275
2018-04-05 15:27:46 +02:00
7cce07bc99
Merge pull request #1352 from tendermint/1228-require-id
...
p2p: require all addresses come with an ID no matter what
2018-04-05 15:55:41 +03:00
5d1c758730
Fix evidence
2018-04-05 05:43:23 -07:00
cee7b5cb54
GetSelectionWithBias
...
Refs #1130
2018-04-05 12:00:16 +02:00
1585152341
https://github.com/tendermint/tendermint/pull/1128#discussion_r162799294
...
Refs #1130
2018-04-05 12:00:16 +02:00
8e699c2bfd
defaultSeedDisconnectWaitPeriod should be at least as long as we expect
...
it to take for a peer to become MarkGood
Refs #1130
2018-04-05 12:00:16 +02:00
904a3115a6
require addresses to have an ID by default
...
Refs #1228
2018-04-05 11:55:29 +02:00
5ef639fcbe
p2p: persistent - redial if first dial fails
...
Fixes #1401
2018-04-03 09:27:06 +05:30
2644a529f0
Fix lint errors ( #1390 )
...
* use increment and decrement operators.
* remove unnecessary else branches.
* fix package comment with leading space.
* fix receiver names.
* fix error strings.
* remove omittable code.
* remove redundant return statement.
* Revert changes (code is generated.)
* use cfg as receiver name for all config-related types.
* use lsi as the receiver name for the LastSignedInfo type.
2018-04-02 10:21:17 +02:00
22949e6dfd
new tmlibs Parallel implementation
2018-03-28 19:13:08 +02:00
901b456151
P2P now works with Amino
2018-03-26 06:40:02 +02:00
214817ed17
do not add peer to switch if it fails to start
2018-03-23 13:31:48 +01:00
a7250af303
Exponential backoff follow up ( #1349 )
...
* document new functionality [ci skip]
Refs #1304
* add fixme [ci skip]
Refs #1304
* ensure that we dial peer after backoff duration
Refs #1304
2018-03-23 09:48:27 +01:00
ced74251e9
maxPacketMsg -> packetMsgMax...
2018-03-21 02:47:38 +01:00
6c345f9fa2
First stab: p2p/conn
2018-03-21 02:27:10 +01:00
50ae892d5e
p2p: Keep reference to connections in test peer
...
We observed non-deterministic test failures in one of our switch tests,
which would happen if the GC would run between iterations of the accept
loop. As we don't hold any reference to the connection the setup
finalizer might get triggered and therefore the file handle closed. For
the curious check the references on finalizers and the variable scoping
in the spec:
https://groups.google.com/forum/#!topic/golang-nuts/xWkhGJ5PY6c
https://groups.google.com/forum/#!topic/golang-nuts/d8aF4rAob7U/discussion
https://golang.org/ref/spec#Declarations_and_scope
Fixes #1266
2018-03-19 20:35:12 +01:00
d8b08cd943
return back panic in peer#onReceive
...
Refs #1317
2018-03-19 13:19:05 +03:00
ab59f64f57
test we record votes and block parts
...
Refs #1317
2018-03-19 13:17:11 +03:00
eaabdb5cac
Merge pull request #1282 from tendermint/1126-private-peers
...
private peers
2018-03-18 22:53:57 +01:00
714f885dac
mark peer as good if it contributed enough votes or block parts
...
Refs #1147
2018-03-15 11:58:20 +04:00
d86855ad7a
stop peer if it sends us msg with unknown channel
2018-03-15 11:58:20 +04:00
4242352852
stop peer on decoding error
2018-03-15 11:58:19 +04:00
31deaa4a79
fix broken merge
2018-03-15 11:55:30 +04:00
736ea055a8
add a test for pex reactor
2018-03-15 11:55:30 +04:00
a39aec0bae
rename private_peers to private_peer_ids to distinguish from peers
2018-03-15 11:55:30 +04:00
fc5b0471d9
use time.Since
2018-03-11 14:13:34 +04:00
264bce4ddd
skip dialing based on last time dialed
2018-03-11 14:00:49 +04:00
0f41570c80
fixes from bucky's review
2018-03-11 13:22:37 +04:00
f85c8896d9
test pex_reactor's dialPeer
2018-03-09 16:23:52 +04:00
f0d4f56327
refactor pex_reactor tests
2018-03-09 16:02:24 +04:00
1941b5c769
fixes from @xla's review
2018-03-08 16:31:44 +04:00
21e2c41c6b
exponential backoff for addrs in the address book
...
Refs #1125
2018-03-08 14:04:26 +04:00
b7ce89e568
Speed up CircleCI builds
...
To achieve faster feedback cycles for our feature PRs this change
reduces the average buildtime from 35 to ~6min by utilising their new
2.0 offering based on docker and nomad. We make use of parallel build
steps wherever possible so that the duration is determined by the
slowest test suite (p2p).
This is an intermediate step until we move our CI/CD completely
on-premise for more control and added security.
2018-03-06 17:36:44 +01:00