Ethan Buchman
528154f1a2
p2p: PrivKey need not be Ed25519
7 years ago
Ethan Buchman
5511bd8e85
p2p: exponential backoff on reconnect. closes #939
7 years ago
Anton Kaliaev
69b5da766c
service#Start, service#Stop signatures were changed
See https://github.com/tendermint/tmlibs/issues/45
7 years ago
Ethan Buchman
55b81cc1a1
address linting FIXMEs
7 years ago
Zach Ramsay
15651a931e
linting errors: tackle p2p package
7 years ago
Zach Ramsay
46ccbcbff6
linting: apply 'gofmt -s -w' throughout
7 years ago
Emmanuel Odeke
283544c7f3
p2p: use fake net.Pipe since only >=Go1.10 implements SetDeadline
Fixes https://github.com/tendermint/tendermint/issues/851
Go1.9 and below's net.Pipe did not implement the SetDeadline
method so after commit
e2dd8ca946
this problem was exposed since now we check for errors.
To counter this problem, implement a simple composition for
net.Conn that always returns nil on SetDeadline instead of
tripping out.
Added build tags so that anyone using go1.10 when it is released
will be able to automatically use net.Pipe's net.Conns
7 years ago
Ethan Buchman
e69d36d54f
some more robust sleeps
7 years ago
Anton Kaliaev
7869e541f6
change MakeConnectedSwitches to not connect to itself
and a test for it
7 years ago
Anton Kaliaev
e0daca5693
fixes from Bucky's review
7 years ago
Anton Kaliaev
2d4ad02356
prefer tickers to time.Sleep (Refs #790 )
7 years ago
Ethan Buchman
b50339e8e7
p2p: sw.AddPeer -> sw.addPeer
7 years ago
Ethan Buchman
aea8629272
peer interface
7 years ago
Ethan Buchman
e6cecb9595
p2p: fix test
7 years ago
Ethan Buchman
16509ac3db
p2p: fix race by peer.Start() before peers.Add()
8 years ago
Anton Kaliaev
f803544195
new logging
8 years ago
Ethan Buchman
46151720f8
fix tests
8 years ago
Ethan Buchman
57151d6043
p2p: use cmn instead of .
8 years ago
Ethan Buchman
5d660e073a
remove viper from p2p
8 years ago
Ethan Buchman
fcf78a5da7
cleanup go-config/viper and some unnamed imports
8 years ago
Ethan Buchman
23a6a6f8fc
move into p2p package
8 years ago
Ethan Buchman
eaeb547938
use tmlibs
8 years ago
Anton Kaliaev
06d219db8e
test peer with no auth enc
8 years ago
Anton Kaliaev
1d01f6af98
2 kinds of peers: outbound and inbound
8 years ago
Anton Kaliaev
7dcc3dbcd1
test peer
8 years ago
Ethan Buchman
9a1a6c56b4
dont expose makePersistent
8 years ago
Ethan Buchman
b6f744c732
fix AddPeerWithConnection
8 years ago
Ethan Buchman
a9bb6734e7
SetDeadline for authEnc. Stop peer if Add fails
8 years ago
Anton Kaliaev
8bb3a2e1d7
persistent peers (Refs #13 )
8 years ago
Ethan Buchman
0e7baf027b
some dial seeds fixes
8 years ago
rigelrozanski
26275ba66c
dial seeds error handling
8 years ago
Ethan Buchman
153ac88672
update MakeConnectedSwitches
8 years ago
Ethan Buchman
642901d5aa
filter conn by addr/pubkey. closes #3
8 years ago
Ethan Buchman
711d2541f5
MakeConnectedSwitches function
8 years ago
Ethan Buchman
981c6868ad
fix race conditions in tests
8 years ago
Ethan Buchman
6684a18730
fix test
9 years ago
Jae Kwon
abc3a2cc3c
initial commit
9 years ago