Commit Graph

2446 Commits

Author SHA1 Message Date
Steven Allen
a1419a4961 fix peerstore constructor calls
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-07 23:48:49 -07:00
Steven Allen
a6e617f55c gx: update peerstore
Also:

* Updates go-floodsub to fix a data race.
* Updates golang-lru

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-07 23:40:08 -07:00
Overbool
725eefaeb0 fix(commands): fix filestore.go goroutine leak
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-09-07 23:12:50 +08:00
Steven Allen
573bada803
Merge pull request #5427 from kjzz/fix-goroutine
fix goroutine leaks in filestore.go
2018-09-07 00:54:51 +00:00
Kejie Zhang
7a9c7b4dd3 fix goroutine leaks in filestore.go
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-09-05 21:57:45 +08:00
Kejie Zhang
dad9bdd6f4 remove ErrObejctTooLarge error
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-09-05 17:50:28 +08:00
Kejie Zhang
47c4dcb2b0 object:refactor data encode error
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-09-05 14:16:35 +08:00
Steven Allen
7b835e908d
Merge pull request #5417 from ipfs/fix/transports
fix two transport related bugs
2018-09-01 18:24:57 +00:00
Steven Allen
3bc47d36fc disable the default listen addrs
We explicitly setup listeners but we do this *after* constructing the node.

fixes #5387

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-31 14:55:22 -07:00
Steven Allen
4294a5fb11 explicitly enable the default transports
Otherwise, enabling the QUIC transport will disable the default ones

fixes #5416

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-31 14:54:56 -07:00
Steven Allen
59805f03c3
Merge pull request #5414 from ipfs/nit/no-caching-nil-repo
don't bother caching if we're using a nil repo
2018-08-31 21:06:43 +00:00
Steven Allen
5bc843e5c8 don't bother caching if we're using a nil repo
(it'll be wrong anyways)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-31 12:21:30 -07:00
Steven Allen
46a1d9d39b gx update deps
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-31 10:29:26 -07:00
Marten Seemann
481d19e303 add QUIC support
License: MIT
Signed-off-by: Marten Seemann <martenseemann@gmail.com>
2018-08-29 08:58:40 +07:00
Marten Seemann
1c57b1d287 update go-ipfs-config to version 0.2.5
License: MIT
Signed-off-by: Marten Seemann <martenseemann@gmail.com>
2018-08-29 08:58:40 +07:00
Steven Allen
2362c6d3d8
Merge pull request #5166 from schomatis/fix/commands/ls-error-unixfs
core/commands/ls: wrap `NewDirectoryFromNode` error
2018-08-28 20:46:07 +00:00
Steven Allen
db45c4d0d9 remove bitswap unwant
This command messes with internal state and doesn't even work at the moment. If
you don't want a block, you should cancel the request that's trying to fetch it.

fixes #5295

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-28 10:21:10 -07:00
Hector Sanjuan
ceb37a346d Feat: depth limited refs -r
This adds --max-depth to the "refs" commands and allows limiting
the fetching of refs per depth. Other than that, it works as before.

Note that clever branch pruning is only made when the --unique flag
is passed. Otherwise, we re-explore branches to the given depth.

This means that --unique costs memory, but may save time when
the DAGs contain the same sub-DAGs in several places (specially if
they are big). On the other side, not using --unique saves
memory but may involve re-exploring large sub-DAGs.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-08-27 20:34:52 +02:00
Steven Allen
93c4f19169
Merge pull request #5281 from ipfs/kevina/inline-cids
Add support for inlinling via the id-hash
2018-08-24 22:09:49 +00:00
Kevin Atkinson
7e3265a16d Change "--inline-limit" default to 32.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-08-24 16:06:54 -04:00
Steven Allen
0be1f5f755
Merge pull request #5359 from achingbrain/allow-files-write-to-create-parent-directories
Allow mfs files.write command to create parent directories
2018-08-23 03:34:22 +00:00
Kevin Atkinson
b0f90e3e84 Address code review.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-08-22 21:41:25 -04:00
Steven Allen
faf7aac940 cmds: go fmt and minor cleanup
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-22 09:49:18 -07:00
Łukasz Magiera
b0c480acf5 name cmd: move subcommands to subdirectory
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-08-22 10:34:44 +02:00
Kevin Atkinson
08c96ba073 Add support for inlining via the id-hash to the add command.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-08-21 21:56:49 -04:00
Steven Allen
656d7cc1a6 gx: update go-cid, go-libp2p-peer, go-ipfs-cmds, go-ipfs-cmdkit
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-21 17:39:56 -07:00
Steven Allen
fcc96a3ae7
Merge pull request #4177 from Voker57/feat/gw-filename-option
Set filename in Content-Disposition if filename=x is passed in URI query
2018-08-21 16:49:53 +00:00
Hector Sanjuan
39a87a0fb0 Extract /mfs
The /mfs module has been extracted to github.com/ipfs/go-mfs

All history has been retained in the new repository. README, LICENSE,
Makefiles and CI integration have been added to the new location.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-08-20 15:28:14 +02:00
Steven Allen
3d1802fe64
Merge pull request #5345 from ipfs/fix/5335
return a json object from config show
2018-08-15 18:47:12 +00:00
vyzo
8a7a26169d instantiate pubsub router based on configuration
in particular, this enabls gossipsub when configured so.

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2018-08-15 10:02:32 -07:00
vyzo
e002de9571 update go-ipfs-config
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2018-08-15 10:02:32 -07:00
Steven Allen
2450ddde81 gx: update go-cid
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-15 08:30:22 -07:00
Hector Sanjuan
de72087df3 Fix some weird code in core/coreunix/add.go
Code was just weird. I think it looks better now.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-08-14 13:15:53 +02:00
achingbrain
c97c44e8a4 Allow mfs files.write command to create parent directories
Adds support for a `-p/--parents` flag to the `files.write` command
similar to the one supported by the `files.mkdir` command. If this
is true and the directory for the file is not `"/"`, try to create
the containing directory before writing to the file.

License: MIT
Signed-off-by: Alex Potsides <alex@achingbrain.net>
2018-08-14 07:59:36 +01:00
Steven Allen
79e7d5e542 update go-datastore to use []byte values instead of {}interface values
* Most of our datastores barf on non []byte values.
* We have to have a bunch of "is this a []byte" checks.
* Saves some allocations.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-13 14:42:55 -07:00
Kevin Atkinson
fda3d88245 Rename prefix to CidBuilder in names when a cid.Builder is used.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-08-12 20:49:49 -04:00
Kevin Atkinson
075ecb09d0 Gx updates and fixes to use new cid.Builder interface.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-08-12 19:15:07 -04:00
Steven Allen
f0769366f1 update cmdkit to fix the progress bar
The progressbar should now correctly calculate the size of a directory (by
ignoring the directory sizes).

fixes #5288

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-10 17:21:28 -07:00
Łukasz Magiera
838a30cd22 gx: Update config
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-08-09 12:39:55 +02:00
Łukasz Magiera
ffc74391d5 move version.go to top level package
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-08-09 11:01:10 +02:00
Łukasz Magiera
d52091fa55 Update iptb
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-08-09 10:57:31 +02:00
Łukasz Magiera
b65cf84a34 repo: move version.go back here
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-08-09 10:51:15 +02:00
Łukasz Magiera
6fcd205e20 Update imports to point to go-ipfs-config
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-08-09 10:37:07 +02:00
Steven Allen
594d95af5d update gogo-protobuf
fixes #3214

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-08 18:56:13 -07:00
Steven Allen
92099a2ed1
Merge pull request #5348 from ipfs/feat/update-blockstore-path
gx: update blockstore and path
2018-08-08 17:11:05 +00:00
Whyrusleeping
324615da58
Merge pull request #5285 from ipfs/kevina/cidv0v1
Add ability to retrieve blocks even if given using a different CID version
2018-08-07 21:19:30 -07:00
Whyrusleeping
8aef43d572
Merge pull request #5339 from ipfs/refactor/coreapi/key
key cmd: Refactor to use coreapi
2018-08-07 16:03:35 -07:00
Steven Allen
88a38e667a modifications for ResolveToLastNode changes
see: https://github.com/ipfs/go-path/pull/1

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-07 10:03:03 -07:00
Steven Allen
3e13277dd4 gx: update deps
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-07 10:02:59 -07:00
Łukasz Magiera
640be715dc key cmd: fix codeclimate warnings
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-08-07 15:12:41 +02:00