Commit Graph

63 Commits

Author SHA1 Message Date
44e967184a p2p: tmconn->conn and types->p2p 2018-01-21 00:34:41 -05:00
5b5cbaa66a p2p: use sub dirs 2018-01-20 21:35:37 -05:00
f9e4f6eb6b reorder peer.go methods 2018-01-14 01:15:37 -05:00
a17105fd46 p2p: peer.Key -> peer.ID 2018-01-01 22:39:05 -05:00
b289d2baf4 persistent node key and ID 2018-01-01 21:21:42 -05:00
528154f1a2 p2p: PrivKey need not be Ed25519 2018-01-01 19:44:01 -05:00
5511bd8e85 p2p: exponential backoff on reconnect. closes #939 2017-12-11 13:41:09 -05:00
69b5da766c service#Start, service#Stop signatures were changed
See https://github.com/tendermint/tmlibs/issues/45
2017-11-29 10:38:58 -06:00
55b81cc1a1 address linting FIXMEs 2017-11-27 22:39:12 +00:00
15651a931e linting errors: tackle p2p package 2017-11-27 22:39:11 +00:00
46ccbcbff6 linting: apply 'gofmt -s -w' throughout 2017-11-27 22:39:11 +00:00
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
2017-11-14 22:03:23 -07:00
e69d36d54f some more robust sleeps 2017-11-14 22:31:23 +00:00
9f6a09277e Merge pull request #812 from tendermint/808-make-connected-switches
MakeConnectedSwitches: connect first switch to others
2017-11-08 00:54:23 +00:00
7869e541f6 change MakeConnectedSwitches to not connect to itself
and a test for it
2017-11-07 18:33:00 -05:00
e0daca5693 fixes from Bucky's review 2017-11-07 18:20:24 -05:00
2d4ad02356 prefer tickers to time.Sleep (Refs #790) 2017-11-07 15:38:25 -05:00
b50339e8e7 p2p: sw.AddPeer -> sw.addPeer 2017-09-21 15:47:41 -04:00
aea8629272 peer interface 2017-09-15 18:40:59 -04:00
e6cecb9595 p2p: fix test 2017-07-07 13:33:15 -04:00
16509ac3db p2p: fix race by peer.Start() before peers.Add() 2017-05-13 10:24:59 +02:00
f803544195 new logging 2017-05-13 10:24:58 +02:00
46151720f8 fix tests 2017-05-04 22:46:41 -04:00
57151d6043 p2p: use cmn instead of . 2017-05-04 22:43:55 -04:00
5d660e073a remove viper from p2p 2017-05-04 22:43:55 -04:00
fcf78a5da7 cleanup go-config/viper and some unnamed imports 2017-04-25 14:54:56 -04:00
23a6a6f8fc move into p2p package 2017-04-21 18:07:52 -04:00
c4ed55d801 Refactor to move common libraries out of project 2015-10-22 17:39:06 -07:00
b54522c60f more versioning 2015-09-16 05:08:06 +00:00
625f23af13 Blockpool better timeouts, download rate observation, quicker switching to consensus; Id -> ID (sorry, this doesn't belong here) 2015-09-11 21:09:00 -07:00
1b9fd811a1 RPCResponse.Result && EventData are registered interfaces; -skip_upnp option 2015-08-11 11:01:18 -07:00
3be3647dc8 tendermint/binary -> tendermint/wire 2015-07-28 12:18:17 -07:00
c0a64d74be Service log prettify 2015-07-20 17:02:18 -07:00
571a134318 BaseService and BaseReactor refactor and unification 2015-07-20 14:52:24 -07:00
e4c351f5fc UUID -> PubKeyEd25519 2015-07-15 14:31:03 -07:00
fd64547ce7 Put a SecretConnection before the MConnection; Node Priv/PubKeys 2015-07-15 14:17:20 -07:00
af5b763112 avoid connection to self 2015-07-12 16:49:12 +00:00
8a2d9525f0 network > chain_id, put in genesis.json 2015-05-29 18:14:19 -04:00
d9bfe82d93 rpc.StartHTTPServer listener bug fix 2015-04-23 18:33:20 -07:00
dc1fddd1d8 Added NodeInfo (still need to add to AddrBook); Proper Handshake 2015-04-20 15:29:01 -07:00
f271ab7256 various changes. removed debora temporarily 2015-04-03 16:15:52 -07:00
13b6508ecd Package import path change 2015-04-01 17:30:16 -07:00
60f166e823 tendermint2 2015-03-31 15:33:31 -07:00
af3c418ea9 comment fixes 2015-03-26 00:52:07 -07:00
aed4bbf0f0 Fix switch tests 2015-03-25 02:36:59 -07:00
a2938fd35b p2p: fix switch test for Broadcast returning success channel 2015-03-18 23:27:28 -07:00
65a232bd9d p2p: fix switch_test to account for handshake 2015-03-18 23:27:27 -07:00
135894ea88 Dot import -> named import
Changed modulename_ to short module names
Also removed Unreader, replaced with PrefixdReader in select locations
2015-01-14 20:34:53 -08:00
0bfb389b35 change logger to log15 2014-12-29 18:09:06 -08:00
bff93107ef UPNP + hairpin probing 2014-12-23 17:20:52 -08:00