Commit Graph

1950 Commits

Author SHA1 Message Date
Jeromy Johnson
9c0f936210 Merge pull request #4155 from ipfs/fix/reprovider-trigger
reprovide: fix ipfs bitswap reprovide when interval set to 0
2017-08-25 11:32:39 -07:00
Łukasz Magiera
e34a5e9c0d gx: update go-reuseport
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-23 16:32:32 +02:00
Łukasz Magiera
ffc9abb8b8 reprovide: fix ipfs bitswap reprovide when interval set to 0
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-20 18:23:09 +02:00
Steven Allen
19c3bd82a3 extract update go-testutil
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-08-16 17:23:01 -07:00
Jeromy Johnson
94b832df86 Merge pull request #4133 from ipfs/feat/improve-dag-api
Improve dag API
2017-08-16 15:22:23 -07:00
Łukasz Magiera
30f482ede6 dag: fix codeclimate
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-16 22:29:27 +02:00
vyzo
b6150b2f06 make filterRelayAddrs a named function, not a closure
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:43:11 +03:00
vyzo
322bb9802f don't leak host in case of error adding relay
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:28:05 +03:00
vyzo
31e3b8f805 simplify code for ipfs protocol scheme in multiaddr display
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:28:05 +03:00
vyzo
a130659800 don't hardcode ipfs protocol name in multiaddr display
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:28:05 +03:00
vyzo
1141705e9a gx: update go-libp2p-circuit
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:28:05 +03:00
vyzo
d7922e7f64 more descriptive help message for ipfs swarm addrs local
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:28:05 +03:00
vyzo
6f54181f66 ipfs swarm addrs listen command, fix t0060-daemon
Necessary for meaningful semantics in the presence of address filtering.

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:28:05 +03:00
vyzo
4f39962643 fix competing address factories in host options
integrate #3948

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:28:05 +03:00
vyzo
9d15e63e00 core: address factory composition for constructPeerHost
- Adds AddrsFactory to ConstructPeerHostOpts
- Composes the AddrsFactory option with the relay filter

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:26:49 +03:00
vyzo
6c63cec719 swarm: more robust logic in remote address printing
Handles p2p-circuit addresses and any other address that uses a similar
routing scheme.

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:26:49 +03:00
vyzo
4900935bd8 account for p2p-circuit address intricacies
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:26:49 +03:00
vyzo
ba5940e617 integrate circuit-relay transport
- enabled by default, so that we can dial/receive dials
- /p2p-circuit/QmId address is not announced; filtered at host with AddrsFactory
- use case is manual swarm connect with relay address

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:26:49 +03:00
Jeromy Johnson
dea24aedc3 Merge pull request #4113 from ipfs/feat/reprovider-starts
Reprovider strategies
2017-08-15 17:13:23 -07:00
Jeromy Johnson
9ea02e9fdd Merge pull request #4123 from sherodtaylor/feature/tour/remove-tour
remove tour command from ipfs
2017-08-15 17:06:36 -07:00
Łukasz Magiera
4a5b93a1df reprovider: apply review suggestions
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-16 00:39:12 +02:00
Łukasz Magiera
5da8368a42 dag: dag resolve subcommand
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-13 20:58:29 +02:00
Steven Allen
e7eca98c4a update go-multiplex
Fixes a panic when creating new streams after closing a connection.

Depends on: https://github.com/whyrusleeping/go-smux-multiplex/pull/3

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-08-12 16:33:48 -07:00
Łukasz Magiera
17ae331be2 reprovider: Implement 'bitswap reprovide' command
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-13 00:02:23 +02:00
Łukasz Magiera
f20683eb53 Reprovider strategies
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-13 00:02:23 +02:00
Jeromy Johnson
50bb128bce Merge pull request #4095 from ipfs/feat/object-pin
object put --pin option
2017-08-12 14:32:18 -07:00
Łukasz Magiera
0953295ce4 dag: add dag-pb support to put
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-12 21:49:07 +02:00
Łukasz Magiera
6bf019aeed dag: cbor input-enc
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-12 21:49:07 +02:00
Łukasz Magiera
0f234d76ae dag: add option to specify hash
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-12 21:49:07 +02:00
Sherod Taylor
bc75d3b88a Removed tour command and fix test
License: MIT
Signed-off-by: Sherod Taylor <sherodtaylor@gmail.com>
2017-08-09 10:14:57 -04:00
Jeromy Johnson
3b60666d25 Merge pull request #4073 from icidasset/master
Expose Content-Range header
2017-08-05 12:24:55 -07:00
Steven Allen
38a9be5a0a gx: update go-libp2p-swarm
fixes #4102 (fixed in go-libp2p-swarm)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-31 14:04:40 -07:00
Łukasz Magiera
778d6c635d object put: wrap CID in Object
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-31 22:06:00 +02:00
Łukasz Magiera
c9446a7720 object: make objectPut return CID
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-31 19:38:05 +02:00
Łukasz Magiera
e1bc025e38 object put --pin option
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-31 19:38:05 +02:00
Lars Gierth
952f658ada
core: make announced swarm addresses configurable
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-07-31 13:03:09 +02:00
Steven Allen
5f3c01a7c1 gx: update deps
This should hopefully fix a lot of our CI problems.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-29 22:14:05 -07:00
Jeromy Johnson
02dc2604b3 Merge pull request #4082 from te0d/feat/commands/add-size
ipfs add: added size to response of `ipfs add` command
2017-07-29 14:49:20 -07:00
Steven Allen
28be1d4c58 gx: update deps
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-27 18:48:16 -07:00
Jeromy Johnson
181dd0061c Merge pull request #4053 from Quantomicus/bugfix
Fixes #4003
2017-07-23 12:22:58 -07:00
Tom O'Donnell (te0d)
0a01ffb87f ipfs add: added size to response of ipfs add command
The `ipfs add` command was modified to include the added
node's size as a string. The size is included in the
dagnode info sent over the output channel.

License: MIT
Signed-off-by: Tom O'Donnell <todonnel91@gmail.com>
2017-07-20 13:19:31 -04:00
Steven Vandevelde
20ad44af1c core/http/gateway: Expose Content-Range header
The `Content-Range` header is necessary for extracting (only)
the metadata of audio files.

License: MIT
Signed-off-by: Steven Vandevelde <icid.asset@gmail.com>
2017-07-19 13:28:33 +02:00
Steven Allen
e8f6486a9c gx: update ipldcbor
I previously optimized the IPLD cbor decoder to *not* encode and then re-decode
objects when constructing them with `WrapObject`. Unfortunately, we rely on this
to canonicalize the object before computing the tree/links.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-17 13:09:08 -07:00
Jeromy Johnson
4c3487017c Merge pull request #4072 from ipfs/fix/dag-put-order
fix determination of 'root' node in dag put
2017-07-16 13:40:38 -07:00
Jeromy
7f89e09d1e fix determination of 'root' node in dag put
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-16 03:14:33 -07:00
Jeromy
fe3a4c1772 remove some dead code
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-16 02:27:46 -07:00
Quantomic
049bca6d09 bandaid it instead
License: MIT
Signed-off-by: Mateja Milosevic <minima38123@gmail.com>
2017-07-14 20:09:55 +02:00
Jakub Sztandera
b0679728f0
make codeclimate more happy
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-13 08:49:11 +02:00
Jakub Sztandera
d6657edf59
make codeclimate a bit more happy
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-12 23:08:41 +02:00
Jeromy
7203c43b60
plugin: create plugin API and loader, add ipld-git plugin
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-12 21:53:59 +02:00