Commit Graph

736 Commits

Author SHA1 Message Date
Steven Allen 6b1133d8e7 switch probuf to gogo
(otherwise, the gx imports won't work)
2018-02-21 15:26:00 -08:00
Steven Allen 6e3c94f943 switch multipro example to a different UUID package
We already have this one imported into GX. Saves the effort of importing a
different one.
2018-02-21 15:07:55 -08:00
Steven Allen 65be183fc3 gx import dep for multipro example 2018-02-21 15:02:43 -08:00
Steven Allen 6297f79d77 fix example import
(need to use the canonical repository location for everything to work)
2018-02-21 15:01:21 -08:00
Steven Allen 64a0735718 gx-go unrewrite 2018-02-21 15:01:21 -08:00
Aviv Eyal 05928a9417 Make sendProtoMessage a method 2018-02-21 15:01:21 -08:00
Aviv Eyal 3eb465bffe Remove protocol.go 2018-02-21 15:01:21 -08:00
Aviv Eyal a13480f00a Added comments and updated readme 2018-02-21 15:01:21 -08:00
Aviv Eyal 2dbb78f88f Added authors 2018-02-21 15:01:21 -08:00
Aviv Eyal 9f7564448d Refactoring 2018-02-21 15:01:21 -08:00
Aviv Eyal 7702e9b8be Minor code cleanup 2018-02-21 15:01:21 -08:00
Aviv Eyal 49182bcfeb Don't rely on local peer store for remote nodes public keys 2018-02-21 15:01:21 -08:00
Aviv Eyal efdab23082 Use pointers for methods to avoid copying 2018-02-21 15:01:21 -08:00
Aviv Eyal 8d6313d195 Go frmt proj 2018-02-21 15:01:21 -08:00
Aviv Eyal 4b231df997 log.Fatal() -> log.Println() 2018-02-21 15:01:21 -08:00
Aviv Eyal bf7f80c30a Refactoring 2018-02-21 15:01:21 -08:00
Aviv Eyal 45c3b5d4a3 Authenticate echo protocol messages 2018-02-21 15:01:21 -08:00
Aviv Eyal 0b1ed3936a Authenticate ping protocol messages 2018-02-21 15:01:21 -08:00
Aviv Eyal b3d54ab284 Sign all messages 2018-02-21 15:01:21 -08:00
Aviv Eyal 0874c5036e Refactoring 2018-02-21 15:01:21 -08:00
Aviv Eyal f1dd3185b4 Formatting 2018-02-21 15:01:21 -08:00
Aviv Eyal c6bfb4d945 Update node type 2018-02-21 15:01:21 -08:00
Aviv Eyal f0b185695a fixed typos 2018-02-21 15:01:21 -08:00
Aviv Eyal 3f926c52eb Apply go formatting 2018-02-21 15:01:21 -08:00
Aviv Eyal 54aa54a59a Updated comments 2018-02-21 15:01:21 -08:00
Aviv Eyal 01e1a19c3f updated readme and comments 2018-02-21 15:01:21 -08:00
Aviv Eyal 380ae70ddc Added multi-protocol using protobufs example 2018-02-21 15:01:21 -08:00
Steven Allen 784f1b4a71
Merge pull request #276 from libp2p/update-go-detect-race
Update go-detect-race to latest packaged version and location
2018-02-16 17:26:54 +00:00
Hector Sanjuan 34ed7b030b gx publish 5.0.15
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-16 11:28:40 +01:00
Hector Sanjuan cc1c2af4b7 Update go-detect-race to latest packaged version and location
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-16 11:26:39 +01:00
Whyrusleeping 69532e1c32
Merge pull request #272 from libp2p/tests/disable-mdns
Skip TestMdnsDiscovery
2018-02-14 11:34:18 -08:00
Łukasz Magiera 498c841eb9 Skip TestMdnsDiscovery 2018-02-14 16:04:14 +01:00
Steven Allen 4910211e39 gx publish 5.0.14 2018-01-31 18:54:09 -08:00
Steven Allen d7d20a44a6 gx publish 5.0.13 2018-01-30 13:51:27 -08:00
Steven Allen 5399fa40ab remove accidentally committed file 2018-01-28 19:34:28 -08:00
Steven Allen 2ae1424cd7
Merge pull request #269 from libp2p/fix/identify-test
make the identify test less racy
2018-01-28 05:57:01 +00:00
Steven Allen b624fe6020
Merge pull request #264 from dmbreaker/master
Added default muxer in case when none was provided.
2018-01-28 05:16:02 +00:00
Steven Allen 5f75373b53 make the identify test less racy 2018-01-27 21:14:08 -08:00
Steven Allen f5e43430a1
Merge pull request #267 from alholm/fix/256
mDNS discovery starts announcing right away
2018-01-28 05:10:55 +00:00
Steven Allen bb716abcf9 gx publish 5.0.12 2018-01-27 17:47:28 -08:00
vyzo 9170399893
Merge pull request #268 from chrisdostert/patch-1
add link to example implementation
2018-01-27 22:51:34 +02:00
Chris Dostert f50cbd5d8a
add link to example implementation 2018-01-27 06:56:01 -08:00
Alexey Kholupko 7c7bd31d3e mDNS discovery starts announcing right away: does not wait for first interval to elapse.
Closes #256
2018-01-27 16:32:58 +07:00
Steven Allen c9eddef068 gx publish 5.0.11 2018-01-19 22:57:58 -08:00
Steven Allen 3dd953f2ce
Merge pull request #265 from libp2p/fix/undead-peer-addrs
fix peerstore apocalypse redux
2018-01-20 06:57:16 +00:00
Steven Allen d7c4c0a202 add test for forgetting address records 2018-01-19 22:37:14 -08:00
Steven Allen ea95a94e78 register identify service netNotify
This way, we actually process disconnect notifications (and reduce the lifetime
on peer addr records).
2018-01-19 22:36:33 -08:00
Steven Allen 096a2c8303 fix peerstore apocalypse redux
This commit prevents us from repeatedly extending the lifetimes of all observed
addresses if a peer keeps on reconnecting.

It also fixes two race conditions:

1. We may end up processing a disconnect after a re-connect and may
accidentally give the addresses associated with that peer a
RecentlyConnectedAddrTTL instead of a ConnectedAddrTTL.

2. We may end up processing a connect after the associated disconnect storing
the associated peer addresses indefinitely.
2018-01-19 21:52:22 -08:00
Steven Allen 64afdfef46 gx publish 5.0.10 2018-01-19 21:30:14 -08:00
Steven Allen 324724c877 remove useless go-base58 dep 2018-01-19 21:30:05 -08:00