2756be5a59
libs: Remove usage of custom Fmt, in favor of fmt.Sprintf ( #2199 )
...
* libs: Remove usage of custom Fmt, in favor of fmt.Sprintf
Closes #2193
* Fix bug that was masked by custom Fmt!
2018-08-10 09:25:57 +04:00
6e3c5e8033
p2p/pex: Allow configured seed nodes to not be resolvable over DNS ( #2129 )
...
* p2p/pex: Allow configured seed nodes to be offline
Previously you couldn't startup tendermint if a seed node was offline.
This now allows you to startup tendermint, as long as all seed node addresses
are formatted correctly. In the event that all seed nodes are down,
and the address book is empty, then it crashes with an informative error msg.
(This case doesn't occur if no seeds were specified)
Closes #1716
* (Squash this) Address melekes' comments
* (squash this) fix package imports
* (squash this) fix pex_reactor comment
* (squash this) add a test case
2018-08-04 20:35:08 -04:00
8ed99c2c13
exit from initSighupWatcher child goroutine
...
also, remove excessive log message
Refs #2072
2018-08-02 16:42:25 +04:00
c248ce5ef6
p2p: Reject addrs coming from private peers ( #2032 )
...
Refs #1706
2018-07-24 17:10:58 +02:00
6c4ca140ed
Add private peer ID tracking to AddrBook ( #1989 )
...
* Add private peer ID tracking to AddrBook
* Remove private peer tracking/blocking from pex
* debug level msg when we fail to add private address
2018-07-18 13:22:09 +04:00
d55243f0e6
fix import paths
2018-07-01 22:36:49 -04:00
d2c05bc5b9
Revert "delete everything" (includes everything non-go-crypto)
...
This reverts commit 96a3502
2018-06-20 17:35:30 -07:00
96a3502126
delete everything
2018-06-20 15:19:08 -07:00
68a0b3f95b
version bump. add roadmap back. minor fixes
2018-05-15 22:42:29 -04:00
b6c062c451
fixes from review
2018-04-30 08:19:19 -04:00
fae94a44a2
p2p/pex: some addrbook fixes
...
* fix before/after in isBad()
* allow multiple IPs per ID even if ID isOld
2018-04-28 20:09:02 -04:00
3a30ee75b9
minor fixes
2018-04-28 17:27:51 -04:00
3498b676a6
update spec and addrbook.go
2018-04-28 17:14:58 -04:00
64569b15e5
fix build and test
2018-04-28 15:39:09 -04:00
aaa81092e7
p2p: some comments and a log line
2018-04-28 15:01:33 -04:00
c23909eecf
p2p/pex: minor cleanup and comments
2018-04-28 13:08:44 -04:00
ab00bf7c8b
standardize PRNG access ( #1411 )
...
* replace math/rand with tmlibs equivalent.
* update tmlibs dependency
2018-04-11 11:38:30 +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
3b3f45d49b
use addrbook#AddOurAddress to store our address
2018-04-05 15:27:47 +02:00
cee7b5cb54
GetSelectionWithBias
...
Refs #1130
2018-04-05 12:00:16 +02:00
f0d4f56327
refactor pex_reactor tests
2018-03-09 16:02:24 +04:00
2a24ae90c1
fixes from Jae's review
...
1. remove pointer
2. add Quit() method to Service interface
2018-02-12 14:32:09 +04:00
8f3bd3f209
p2p: addrBook.Save() on DialPeersAsync
2018-01-23 22:25:39 -05:00
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