suyuhuang
384b3ea065
improve `show_node_id` ( #1433 )
* fix show_node_id
* make LoadNodeKey public
* make LoadNodeKey public
* remove if
* remove if
7 years ago
Ethan Buchman
1a1e4e767b
check max msg size in DecodeMessage
7 years ago
Ethan Buchman
c68d406195
fix tests
7 years ago
Ethan Buchman
02c0835e9b
fixes post merge
7 years ago
Javed Khan
5d8767e656
p2p: don't use dial funcn in peerconfig
7 years ago
Javed Khan
54adb790f2
p2p: switch - reconnect only if persistent
7 years ago
Jae Kwon
fb64314d1c
Review from Anton
7 years ago
Anton Kaliaev
3d32474da8
make linter happy
7 years ago
Anton Kaliaev
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 ?"
7 years ago
Anton Kaliaev
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
7 years ago
Anton Kaliaev
7f6ee7a46b
add a comment for NewSwitch
7 years ago
Anton Kaliaev
34b77fcad4
log error when we fail to add new address
7 years ago
Anton Kaliaev
3b3f45d49b
use addrbook#AddOurAddress to store our address
7 years ago
Anton Kaliaev
3284a13fee
add test
Refs #1275
7 years ago
Anton Kaliaev
fc9ffee2e3
remove unused tracking because it leads to memory leaks in tests
see https://blog.cosmos.network/debugging-the-memory-leak-in-tendermint-210186711420
7 years ago
Anton Kaliaev
4b8e342309
fix panic: lookup testing on 10.0.2.3:53: no such host
7 years ago
Anton Kaliaev
5a2fa71b03
use combination of IP and port, not just IP
7 years ago
Anton Kaliaev
9a57ef9cbf
do not dial ourselves (ok, maybe just once)
Refs #1275
7 years ago
Jae Kwon
5d1c758730
Fix evidence
7 years ago
Anton Kaliaev
cee7b5cb54
GetSelectionWithBias
Refs #1130
7 years ago
Anton Kaliaev
1585152341
https://github.com/tendermint/tendermint/pull/1128#discussion_r162799294
Refs #1130
7 years ago
Anton Kaliaev
8e699c2bfd
defaultSeedDisconnectWaitPeriod should be at least as long as we expect
it to take for a peer to become MarkGood
Refs #1130
7 years ago
Anton Kaliaev
904a3115a6
require addresses to have an ID by default
Refs #1228
7 years ago
Javed Khan
5ef639fcbe
p2p: persistent - redial if first dial fails
Fixes #1401
7 years ago
Thomas Corbière
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.
7 years ago
Anton Kaliaev
22949e6dfd
new tmlibs Parallel implementation
7 years ago
Jae Kwon
901b456151
P2P now works with Amino
7 years ago
Anton Kaliaev
214817ed17
do not add peer to switch if it fails to start
7 years ago
Anton Kaliaev
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
7 years ago
Jae Kwon
ced74251e9
maxPacketMsg -> packetMsgMax...
7 years ago
Jae Kwon
6c345f9fa2
First stab: p2p/conn
7 years ago
Alexander Simmerl
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
7 years ago
Anton Kaliaev
d8b08cd943
return back panic in peer#onReceive
Refs #1317
7 years ago
Anton Kaliaev
ab59f64f57
test we record votes and block parts
Refs #1317
7 years ago
Anton Kaliaev
714f885dac
mark peer as good if it contributed enough votes or block parts
Refs #1147
7 years ago
Anton Kaliaev
d86855ad7a
stop peer if it sends us msg with unknown channel
7 years ago
Anton Kaliaev
4242352852
stop peer on decoding error
7 years ago
Anton Kaliaev
31deaa4a79
fix broken merge
7 years ago
Anton Kaliaev
736ea055a8
add a test for pex reactor
7 years ago
Anton Kaliaev
a39aec0bae
rename private_peers to private_peer_ids to distinguish from peers
7 years ago
Anton Kaliaev
fc5b0471d9
use time.Since
7 years ago
Anton Kaliaev
264bce4ddd
skip dialing based on last time dialed
7 years ago
Anton Kaliaev
0f41570c80
fixes from bucky's review
7 years ago
Anton Kaliaev
f85c8896d9
test pex_reactor's dialPeer
7 years ago
Anton Kaliaev
f0d4f56327
refactor pex_reactor tests
7 years ago
Anton Kaliaev
1941b5c769
fixes from @xla's review
7 years ago
Anton Kaliaev
21e2c41c6b
exponential backoff for addrs in the address book
Refs #1125
7 years ago
Alexander Simmerl
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.
7 years ago
Alexander Simmerl
8f2703e8b2
Dial seeds directly without potential peers
In order to improve the operator experience we want the node to dial
seeds immediately if there are no peers to connect to. Until now the
routine responsible for ensuring peers are connected to would wait
a random amount of time up to 30s (if not configured otherwise).
7 years ago
Zach
2cc63069c6
rename dummy to kvstore ( #1223 )
* remove accidental binary
* docs: s/Dummy&dummy/KVStore&kvstore/g
* glide update to abci
* update abci import paths
* dummy begone, hello kvstore
* RequestInitChain needs genesisBytes
* glide update
7 years ago