Commit Graph

515 Commits

Author SHA1 Message Date
vyzo f084087574 blacklist type and option 2019-01-17 14:05:04 +02:00
vyzo e0e995d889 add check for blacklisted sources 2019-01-16 12:26:26 +02:00
vyzo 1a05f13251 blacklist test 2019-01-15 19:10:08 +02:00
vyzo 654b4e9bf3 close streams and ignore blacklisted peers 2019-01-15 19:04:22 +02:00
vyzo cfb9a1dc96 implement peer blacklist 2019-01-15 16:17:24 +02:00
vyzo fef794ab97
Merge pull request #148 from libp2p/feat/timecache
make timecache duration configurable
2019-01-15 16:12:16 +02:00
vyzo 04f90acd17 make timecache duration configurable 2019-01-15 15:39:13 +02:00
vyzo 2e1fb613f9
Merge pull request #147 from libp2p/documentation
godoc is not html either
2019-01-11 12:32:06 +02:00
vyzo 153c9f77c7 godoc is not html either
and no it doesn't render html either; can't make a damn ordered list...
2019-01-11 12:17:48 +02:00
vyzo b9204320ce
Merge pull request #146 from libp2p/documentation
godoc documentation is not markdown
2019-01-11 12:12:16 +02:00
vyzo cb760b0323 godoc documentation is not markdown 2019-01-11 12:03:09 +02:00
vyzo 4c242f5882
Merge pull request #145 from libp2p/documentation
Add documentation for subscribe's non-instanteneous semantics
2019-01-11 11:52:41 +02:00
vyzo 41306ab374 move package declaration after documentation so that it is rendered by godoc 2019-01-11 11:47:06 +02:00
vyzo 11e90ac604 document subscribe's non instanteneous semantics 2019-01-11 11:46:48 +02:00
vyzo 51b7501433
Merge pull request #140 from libp2p/documentation
Some documentation
2019-01-04 14:01:48 +02:00
vyzo 96c5b40934 godoc cosmetics 2019-01-04 13:14:04 +02:00
vyzo b03f619cf0 add doc.go for package documentation 2019-01-04 13:14:04 +02:00
vyzo 5974832429 update README 2019-01-04 13:13:59 +02:00
vyzo 0363ea8f53
Merge pull request #138 from libp2p/gx/update
gx publish 0.11.10
2018-12-27 12:02:04 +02:00
vyzo f736644fe8 gx publish 0.11.10 2018-12-27 11:50:13 +02:00
vyzo 6fc7deb286
Merge pull request #134 from libp2p/gx/publish
gx publish 0.11.9
2018-12-14 09:31:07 +02:00
vyzo 6dbcf56dc6 gx publish 0.11.9 2018-12-14 09:26:29 +02:00
vyzo a12c523316
Merge pull request #132 from libp2p/fix/peer-tracking
rework peer tracking logic to handle multiple connections
2018-12-14 00:47:45 +02:00
vyzo 6d2f8e649c discriminate stream errors from unsupported protocols 2018-12-14 00:33:30 +02:00
vyzo f31593e883 prefill outoging channel with hello packet 2018-12-13 23:56:04 +02:00
vyzo f82af595dc don't share the outgoing channel in new stream handlers from disconnects 2018-12-13 23:45:30 +02:00
vyzo fc7795c38f simplify peer disconnect detection logic to ensure a single outgoing stream 2018-12-13 22:52:59 +02:00
vyzo 2621f893e6 rework peer tracking logic to handle multiple connections 2018-12-13 19:53:12 +02:00
Steven Allen c7528f3c99 gx publish 0.11.8 2018-12-07 14:56:21 -08:00
Hannah Howard c9c04d4207
Merge pull request #127 from libp2p/gx/update-kque0y
gx publish 0.11.7
2018-11-10 18:04:41 -08:00
hannahhoward 21ac0319ce gx publish 0.11.7 2018-11-10 17:51:19 -08:00
Steven Allen 9ea82d8d65 gx publish 0.11.6 2018-11-02 21:11:57 -07:00
Steven Allen acdf53a8bc gx publish 0.11.5 2018-11-02 18:07:04 -07:00
Steven Allen 6310d23bc4 gx publish 0.11.4 2018-11-02 16:55:34 -07:00
Steven Allen 067e546891 gx publish 0.11.3 2018-10-29 06:32:25 -07:00
Steven Allen ec18566a0a
Merge pull request #125 from libp2p/fix/announce-retry
fix announce retry logic
2018-10-29 06:30:45 -07:00
vyzo 86e65e589d don't stand on your head to take a pointer
the whole stack argument doesn't make much sense in golang; escape analysis
should allocate in heap.
2018-10-29 12:38:03 +02:00
vyzo 575cf339f4 fix announce retry logic 2018-10-29 11:10:31 +02:00
Steven Allen 5487d6138d gx publish 0.11.2 2018-10-26 05:56:32 -07:00
Steven Allen a426c572ad
Merge pull request #123 from libp2p/feat/peer-tagging
gossipsub: tag mesh peers to discourage pruning their connections
2018-10-26 05:55:36 -07:00
vyzo 2478eb9a87 gossipsub: tag mesh peers to discourage pruning their connections 2018-10-26 15:49:34 +03:00
Steven Allen e1cd22937e gx publish 0.11.1 2018-10-26 03:50:48 -07:00
vyzo dbbae462a6
Merge pull request #122 from libp2p/fix/forbid-nonsensical-options
forbid sign strict without signing enabled
2018-10-26 12:45:55 +03:00
Steven Allen 017e522caa test nonsensical options 2018-10-25 16:57:00 -07:00
Steven Allen 7303abae4b forbid sign strict without signing enabled 2018-10-25 16:52:22 -07:00
Steven Allen 107b3bdc97 gx publish 0.11.0 2018-10-25 09:54:49 -07:00
vyzo 50ba3c2ae2
Merge pull request #121 from libp2p/feat/message-signing-options
rework message signing options
2018-10-25 19:39:42 +03:00
Steven Allen 5557880eed fix grammer in option comment 2018-10-25 09:33:57 -07:00
Steven Allen b7b87f0235 ci: bump go to 1.11 2018-10-25 06:46:04 -07:00
Steven Allen fba434025b rework message signing options
Previously, there was no non-breaking upgrade path to enable message signing by
default while still providing a way to disable it. This patch breaks the options
into:

1. WithMessageSigning - actually enable message signing.
2. WithStrictSignatureVerification - enforce strict signature verification.
3. WithMessageAuthor - set the message author (independent of signing).

Now, users can explicitly set all three options and any changes we make to the
defaults will never override these explicit settings.

This patch *also* enables *signing* by default but not strict signature
verification. We obviously can't enable verification by default yet but I see no
reason not to enable signing. Basically, we're either hurting performance or
security by default. Security issues are generally only noticed once it's too
late. Performance issues can be caught ahead of time.
2018-10-25 06:41:49 -07:00