Commit Graph

1619 Commits

Author SHA1 Message Date
Aarsh Shah fa575b4d32 changes as per review 2020-03-25 00:35:26 +05:30
Aarsh Shah 82be3ee46f signal address change 2020-03-25 00:10:23 +05:30
Steven Allen 1425d551c2
Merge pull request #850 from libp2p/fix/mock-tests
fix multiple issues in the mock tests
2020-03-23 14:39:23 -07:00
Steven Allen 1ce9b9980a chore(dep): update go-libp2p-peerstore
fixes psmem.Close()
2020-03-23 14:27:55 -07:00
Steven Allen c99a5bfa25 test(mock): close the mocknet when fuzzing 2020-03-23 14:27:41 -07:00
Steven Allen 29b355faaa fix(mock): close the mocknet's peerstore 2020-03-23 14:27:16 -07:00
Steven Allen 5403811df9 fix: make sure to close the mocknet's context when canceled 2020-03-23 14:27:04 -07:00
Steven Allen 223cd42251 fix(mock): wait till we add the connection to set it up
Otherwise, we can try to remove it before we add it and panic.
2020-03-23 14:26:16 -07:00
Steven Allen 22232e0d6d fix(mock): fire disconnect notifications async like we do in the swarm 2020-03-23 14:25:38 -07:00
Steven Allen 3f7e86bda9
Merge pull request #849 from libp2p/fix/minimal-autonat-dialer
fix: minimal autonat dialer
2020-03-22 16:18:13 -07:00
Steven Allen 891bba6566 fix: minimal autonat dialer
Currently, the AutoNAT dialer spins up a full host with identify, ping, etc.
this switches to a blankhost.

This also avoids running a relay, listening on transports, etc (regression).
2020-03-22 16:02:11 -07:00
Steven Allen 718364b60a
Merge pull request #807 from libp2p/feat/autorelay
Trigger Autorelay on NAT events
2020-03-20 16:53:17 -07:00
Will Scott 3d4e8d8032
Merge branch 'master' of github.com:libp2p/go-libp2p into feat/autorelay 2020-03-20 16:45:56 -07:00
Aarsh Shah 611e5ab185
Merge pull request #847 from libp2p/feat/local-addrupdated-evt
Local addr updated event
2020-03-20 18:54:01 +05:30
Aarsh Shah d49806efc9 emit address change evt 2020-03-20 10:04:13 +05:30
Will Scott 685ba00833
update to current autonat interface 2020-03-19 13:27:48 -07:00
Aarsh Shah ed4646f711 local addr updated event 2020-03-19 19:05:15 +05:30
Steven Allen 76c1f95caa
Merge pull request #846 from libp2p/chore/dep-update
chore: update yamux
2020-03-18 21:36:37 -07:00
Steven Allen 7b280dd74d chore: update yamux
On, final, time.
2020-03-18 21:31:43 -07:00
Steven Allen 891aeda705
Merge pull request #843 from libp2p/dependabot/go_modules/github.com/libp2p/go-libp2p-yamux-0.2.4
build(deps): bump github.com/libp2p/go-libp2p-yamux from 0.2.2 to 0.2.4
2020-03-17 14:49:56 -07:00
Will Scott dd87382dd4
update to latest autonat 2020-03-17 13:10:52 -07:00
Will Scott e55690c428
Merge branch 'master' of github.com:libp2p/go-libp2p into feat/autorelay 2020-03-17 12:57:53 -07:00
Will Scott 69b16483fd
properly filter nat addresses 2020-03-17 12:27:08 -07:00
Will Scott 8037ce2dca
generation of dialer host when needed 2020-03-17 11:29:36 -07:00
dependabot-preview[bot] 71e2d4ed5b
build(deps): bump github.com/libp2p/go-libp2p-yamux from 0.2.2 to 0.2.4
Bumps [github.com/libp2p/go-libp2p-yamux](https://github.com/libp2p/go-libp2p-yamux) from 0.2.2 to 0.2.4.
- [Release notes](https://github.com/libp2p/go-libp2p-yamux/releases)
- [Commits](https://github.com/libp2p/go-libp2p-yamux/compare/v0.2.2...v0.2.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-17 11:18:56 +00:00
Will Scott 1921bc20ae
autonat startup within libp2p config 2020-03-16 17:53:26 -07:00
Will Scott 8008b5d58f
update autorelay to remove dependence on autonat
instead, learns nat status through event bus
2020-03-16 16:11:23 -07:00
Steven Allen 463fa2a0dc
Merge pull request #838 from libp2p/dependabot/go_modules/github.com/multiformats/go-multiaddr-net-0.1.3
build(deps): bump github.com/multiformats/go-multiaddr-net from 0.1.2 to 0.1.3
2020-03-11 09:27:14 -07:00
dependabot-preview[bot] ca57cf904e
build(deps): bump github.com/multiformats/go-multiaddr-net
Bumps [github.com/multiformats/go-multiaddr-net](https://github.com/multiformats/go-multiaddr-net) from 0.1.2 to 0.1.3.
- [Release notes](https://github.com/multiformats/go-multiaddr-net/releases)
- [Commits](https://github.com/multiformats/go-multiaddr-net/compare/v0.1.2...v0.1.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-11 11:18:38 +00:00
Will Scott 89c193e0ca
Merge branch 'master' into feat/autorelay 2020-03-10 11:53:55 -07:00
Steven Allen 9ad477ba8b
Merge pull request #836 from libp2p/feat/reliable-mock-notif
feat(mock): reliable notifications
2020-03-09 17:31:31 -07:00
Steven Allen 5f75aa2068 feat(mock): reliable notifications
* Export StreamComplement/ConnComplement convenience functions.
* Make the TestNotifications test pass reliably, even when we have a bunch of
streams (identify, etc.).
* Make the mock net order disconnect events after connect events.
* Make closing one side of a connection actually close both sides.
* Make it possible to extract a mock stream's complement.
* Fire remote events at the same time as the local events.
2020-03-09 17:15:01 -07:00
Steven Allen 4bbf43e8b2
Merge pull request #835 from libp2p/fix/autorelay-doc
doc(options): fix autorelay documentation
2020-03-09 08:02:14 -07:00
Steven Allen 61634630e8
Merge pull request #833 from libp2p/dependabot/go_modules/github.com/libp2p/go-libp2p-mplex-0.2.2
build(deps): bump github.com/libp2p/go-libp2p-mplex from 0.2.1 to 0.2.2
2020-03-09 07:41:56 -07:00
Steven Allen 8248da96b0 doc(options): fix autorelay documentation
Routing is only required for autorelay when no static relays are configured.
2020-03-09 07:40:38 -07:00
dependabot-preview[bot] 241a61a246
build(deps): bump github.com/libp2p/go-libp2p-mplex from 0.2.1 to 0.2.2
Bumps [github.com/libp2p/go-libp2p-mplex](https://github.com/libp2p/go-libp2p-mplex) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/libp2p/go-libp2p-mplex/releases)
- [Commits](https://github.com/libp2p/go-libp2p-mplex/compare/v0.2.1...v0.2.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-09 14:21:49 +00:00
Steven Allen 8a52e862ee
Merge pull request #832 from libp2p/dependabot/go_modules/github.com/libp2p/go-libp2p-yamux-0.2.2
build(deps): bump github.com/libp2p/go-libp2p-yamux from 0.2.1 to 0.2.2
2020-03-09 07:19:10 -07:00
Steven Allen 15fa3033c5
Merge pull request #834 from libp2p/dependabot/go_modules/github.com/libp2p/go-libp2p-peerstore-0.2.0
build(deps): bump github.com/libp2p/go-libp2p-peerstore from 0.1.4 to 0.2.0
2020-03-09 07:18:25 -07:00
dependabot-preview[bot] b5853020f8
build(deps): bump github.com/libp2p/go-libp2p-peerstore
Bumps [github.com/libp2p/go-libp2p-peerstore](https://github.com/libp2p/go-libp2p-peerstore) from 0.1.4 to 0.2.0.
- [Release notes](https://github.com/libp2p/go-libp2p-peerstore/releases)
- [Commits](https://github.com/libp2p/go-libp2p-peerstore/compare/v0.1.4...v0.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-09 11:20:44 +00:00
dependabot-preview[bot] a3bbeef22e
build(deps): bump github.com/libp2p/go-libp2p-yamux from 0.2.1 to 0.2.2
Bumps [github.com/libp2p/go-libp2p-yamux](https://github.com/libp2p/go-libp2p-yamux) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/libp2p/go-libp2p-yamux/releases)
- [Commits](https://github.com/libp2p/go-libp2p-yamux/compare/v0.2.1...v0.2.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-09 11:19:43 +00:00
Steven Allen e641f58681
Merge pull request #817 from libp2p/dependabot/go_modules/github.com/multiformats/go-multiaddr-0.2.1
build(deps): bump github.com/multiformats/go-multiaddr from 0.2.0 to 0.2.1
2020-03-06 22:59:34 -08:00
Steven Allen 34e69d491c
Merge pull request #796 from libp2p/generalize-private-network
change PrivateNetwork to accept a PSK, update constructor magic
2020-03-06 22:58:47 -08:00
Steven Allen cd4c6d3d11
Merge pull request #827 from libp2p/update-readme
docs: Update the README
2020-03-06 22:53:14 -08:00
Steven Allen 4ccf017104
Merge pull request #820 from libp2p/fix/remove-goroutine
fix: remove an unnecessary goroutine
2020-03-06 22:52:41 -08:00
Steven Allen d6d2081971
Merge pull request #810 from libp2p/fix/relays-without-content-routing
EnableAutoRelay should work without ContentRouting if there are StaticRelays defined
2020-03-06 22:51:53 -08:00
Marten Seemann 68f9fd0e13 change PrivateNetwork to accept a PSK, update constructor magic 2020-03-06 18:41:16 -08:00
Steven Allen ebb9cb8af1
Merge pull request #815 from Wondertan/fix/reset-error
Use of mux.ErrReset in mocknet
2020-03-06 17:07:09 -08:00
Will Scott 0458b76abb
update to changed event structure 2020-03-05 09:12:57 -08:00
Steven Allen 5a6c36d346
Merge pull request #826 from vasco-santos/docs/uniform
docs: uniform comment sentences
2020-03-03 09:40:34 -08:00
David Dias 969eedc98f docs: remove note to non cancelled dev calls 2020-03-03 15:57:32 +01:00