Commit Graph

704 Commits

Author SHA1 Message Date
Steven Allen
3eba14aa24 gx update
Updates:

* go-kad-dht: Query performance improvements, DHT client fixes, validates
  records on *local* put.
* go-libp2p-swarm/go-libp2p-transport: Timeout improvements.
* go-multiaddr-net: Exposes useful Conn methods (CloseWrite, CloseRead, etc.)
* go-log: fixes possible panic when enabling/disabling events.
* go-multiaddr: fixes possible panic when stringifying malformed multiaddrs,
  adds support for consuming /p2p/ multiaddrs.

fixes #5113
unblocks #4895

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-26 17:11:33 -07:00
Steven Allen
352ec3561c add record validation to offline routing
fixes #5115

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-25 18:14:25 -07:00
Steven Allen
85acad9a01 gx update go-log, sys, go-crypto
* go-log
* sys
* go-crypto

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-08 22:36:24 -07:00
Steven Allen
39f927aa04 update gx imports
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-05 23:55:08 -07:00
Steven Allen
b84a71de8c transport refactor update
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-05 23:51:06 -07:00
Steven Allen
c9c9986c9e update multiplexers
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-04 10:05:20 -07:00
Steven Allen
1e9e2f453c update deps
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-05-31 17:59:17 -07:00
Whyrusleeping
c225c344e4
Merge pull request #4833 from ipfs/misc/remove-dead-code
misc: Remove some dead code
2018-04-20 23:39:55 +09:00
Whyrusleeping
076fd91e5f
Merge pull request #4835 from ipfs/fix/typos
misc: Fix a few typos
2018-04-20 23:35:58 +09:00
Hector Sanjuan
df59b29fdc Extract exchange/offline to go-ipfs-exchange offline
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-04-19 12:07:36 +02:00
Hector Sanjuan
5eb85502ab Extract: blocks/blocksutil to go-ipfs-blocksutil
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-04-19 12:07:36 +02:00
Hector Sanjuan
9955208f8b Extract: exchange/interface.go to go-ipfs-exchange-interface
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-04-19 12:07:30 +02:00
Łukasz Magiera
b290286dd7 misc: Fix a few typos
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-30 09:47:22 +02:00
Łukasz Magiera
2ee5cfb90f fix error style
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-30 09:43:27 +02:00
Hector Sanjuan
69a6bd2770 Revert go-libp2p-kad-dht and related changes to a working version
This uses a working libp2p-kad-dht and libp2p-record libraries,
reverts the changes that were introduced to support the newer versions

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-03-26 22:12:14 +02:00
Hector Sanjuan
a6848aa2b4 Remove thirdparty/datastore2/delayed.go: part of new go-datastore
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-03-26 22:12:14 +02:00
Hector Sanjuan
3ee1d76d88 Update to latest go-datastore
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-03-26 22:12:14 +02:00
Łukasz Magiera
ae528640d9 misc: Remove some dead code
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-21 01:34:04 +01:00
Jakub Sztandera
b91dfbfec4 exchange: reintroduce info on wantlist update to no connected peer
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-12 23:23:27 +01:00
Steven Allen
f8a7683f25 don't warn when trying to send wantlist to disconnected peers
fixes #4439

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-12 23:22:19 +01:00
Whyrusleeping
c00482ab19
Merge pull request #4727 from ipfs/fix/4726
fix race in TestWantlistClearsOnCancel
2018-03-05 12:28:10 -08:00
Jakub Sztandera
45272790a2 don't reprovide inssecure hashes
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-05 19:38:25 +01:00
Steven Allen
e3d9e05ec2 fix race in TestWantlistClearsOnCancel
fixes #4726

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-02-21 12:35:56 -08:00
Whyrusleeping
53af4530ed
Merge pull request #4711 from ipfs/extract/pq
Extract thirdparty/pq to go-ipfs-pq
2018-02-15 15:33:15 -08:00
Hector Sanjuan
9b6a63e768 Extract thirdparty/pq to go-ipfs-pq
This moves the `thirdparty/pq` package to https://github.com/ipfs/go-ipfs-pq .

History has been retained. The new package has been gx'ed and published.
Imports have been updated accordingly.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-15 23:08:08 +01:00
Hector Sanjuan
6950d0688e Point briantigerchow/pubsub GoDep'ed module to the gx'ed version
This removes briantigerchow/pubsub from Godeps and uses our
gx'ed version instead.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-15 23:05:49 +01:00
Whyrusleeping
b9b1495a7a
Merge pull request #4709 from ipfs/feat/session-exchanges
Add exchange.SessionExchange interface for exchanges that support sessions
2018-02-15 13:58:10 -08:00
Hector Sanjuan
5df160e9e5 Add exchange.SessionExchange interface for exchanges that support sessions.
Blockservice has an explicit dependency on bitswap so it can
call NewSession. It should rely on the exchange interfaces though, not
on specific implementations.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-15 21:11:21 +01:00
Hector Sanjuan
758e00bc4c Extract blocks/blockstore package to go-ipfs-blockstore
This extracts the blocks/blockstore package and renames the
blocks/blockstore/util package to /blocks/blockstoreutil
(because util depends on Pin and I don't plan to extract
Pin and its depedencies).

The history of blocks/blockstore has been preserved. It has
been gx'ed and imported. Imports have been rewritten accordingly
and re-ordered.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-15 18:03:41 +01:00
Hector Sanjuan
54d87b4ce0 Extract: routing package to github.com/ipfs/go-ipfs-routing
This extracts the routing package to its own repository
(https://github.com/ipfs/go-ipfs-routing). History has
been preserved. The new module has been gx'ed and published.

Imports have been rewritten and re-ordered accordingly.

An internal dependency to go-ipfs/repo has been removed
by substituting it with the go-datastore.Batching interface.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-14 18:33:52 +01:00
Whyrusleeping
4aaf24f56d
Merge pull request #4658 from ipfs/fix/session-cleanup
shutdown notifications engine when closing a bitswap session
2018-02-13 13:11:57 -08:00
Hector Sanjuan
982af8af69 More consistency in imports
Per @magik6k comments.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-13 11:29:32 +01:00
Jeromy
0dd0f25271 bitswap virtual test net code should send messages in order
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-02-12 23:40:15 -08:00
Steven Allen
d4d30f4e8a bitswap: actually *update* wantlist entries in outbound wantlist messages
Before, we weren't using a pointer so we were throwing away the update.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-02-12 21:02:19 -08:00
Hector Sanjuan
c9080f99e8 Import re-ordering
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-12 22:51:42 +01:00
Hector Sanjuan
fd04905adb Extract: flags and thirdparty/delay submodules
They have been moved to their own repositories:

* github.com/ipfs/go-ipfs-delay
* github.com/ipfs/go-ipfs-flags

History has been preserved. They have been published
with gx'ed. Imports have been updated and re-ordered
accordingly.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-12 22:51:03 +01:00
Hector Sanjuan
a4115e9e14 Extract go-detect-race from Godeps
I have forked it, put it under ipfs namespace, published to gx

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-12 12:35:34 +01:00
Steven Allen
1a37c0a870 avoid publishing if notification system has been shut down
(will deadlock)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-02-11 12:51:50 -08:00
Steven Allen
2baa3312d1 bitswap: test canceling subscription context after shutting down
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-02-09 17:33:57 -08:00
Steven Allen
53958266d6 bitswap: finish unsubscribing from the pubsub instance before shutting it down
Otherwise, we'll deadlock and leak a goroutine. This fix is kind of crappy but
modifying the pubsub library would have been worse (and, really, it *is*
reasonable to say "don't use the pubsub instance after shutting it down").

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-02-09 12:19:21 -08:00
Steven Allen
2b99858dda remove excessive time.Now() calls from bitswap sessions
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-02-09 12:18:58 -08:00
Jeromy
64c19cc904 WIP: fix wantlist clearing by closing down session
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-02-09 12:18:58 -08:00
Jeromy
82e1ff585f shutdown notifications engine when closing a bitswap session
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-02-09 12:18:58 -08:00
Steven Allen
b2cbfd299c gx: update go-log
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-31 21:54:22 -08:00
Steven Allen
f9d935b984 rename import of go-ipld-format from node/format to ipld
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-29 11:55:34 -08:00
Steven Allen
5acbecc26b update go-lib2p-loggables
fixes a UUID bug I introduced (UUIDs were always an error value)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-27 18:05:30 -08:00
Steven Allen
d154b4a990 merkledag: switch to new dag interface
Also:

* Update the blockstore/blockservice methods to match.
* Construct a new temporary offline dag instead of having a
  GetOfflineLinkService method.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-25 15:13:19 -08:00
Steven Allen
fe8846fcd7 gx: mass update
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-24 15:58:44 -08:00
Steven Allen
914e653828 only construct bitswap event loggable if necessary
Base58 encoding cids/peerIDs isn't exactly fast.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-29 13:00:24 -08:00
Steven Allen
a5e9d0a23a make bitswap tests pass again with the race detector enabled
fixes #2444

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-15 15:46:33 -08:00