Commit Graph

139 Commits

Author SHA1 Message Date
Steven Allen
794cdc2642 chore(dep): update libp2p 2019-12-05 13:26:46 -05:00
Michael Muré
c3692a5913 extract the pinner to go-ipfs-pinner and dagutils into go-merkledag 2019-12-02 15:45:44 -05:00
Adin Schmahmann
0906d7f3b1 fix (pinning): pin ls traverses all indirect pins. pin ls pin type precedence change - a direct/recursive pin is now labeled as such even if also indirectly pinned. 2019-12-02 13:53:14 -05:00
Steven Allen
c529410f04 chore(dep): update go-ipfs-provider 2019-11-18 11:51:33 -06:00
Michael Muré
097b684b42
pin: add context and error return to most of the Pinner functions 2019-11-18 18:32:48 +01:00
Steven Allen
dba13955e5 chore(build): switch to go 1.13 2019-11-15 05:36:09 -08:00
Steven Allen
57a7f09196 chore(dep): update QUIC
This is a large protocol breaking change. That's why QUIC is experimental.
2019-11-15 05:36:08 -08:00
Steven Allen
02338478e0 dep: update bitswap for improved performance
The new version of bitswap should improve server-side ("seeding") performance
with high-latency disks.
2019-10-28 16:49:21 -07:00
Jakub Sztandera
01b357a98a
Merge pull request #6701 from ipfs/feat/buzhash
Introduce buzhash chunker
2019-10-08 01:45:17 +02:00
Jakub Sztandera
67f9837734
Introduce buzhash chunker
It has the same properties as Rabin but is much faster.
Benchmark results:

```
name             speed
Buzhash2/1K-4    1.71GB/s ± 4%
Buzhash2/1M-4    1.15GB/s ± 2%
Buzhash2/16M-4    892MB/s ± 1%
Buzhash2/100M-4   904MB/s ± 2%
Rabin/1K-4       13.8MB/s ± 3%
Rabin/1M-4        171MB/s ± 3%
Rabin/16M-4       182MB/s ± 4%
Rabin/100M-4      182MB/s ± 3%
Default/1K-4     1.74GB/s ± 4%
Default/1M-4     3.22GB/s ± 2%
Default/16M-4    3.88GB/s ± 2%
Default/100M-4   4.21GB/s ± 6%
```

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-07 18:06:02 +02:00
Steven Allen
d5f22c2ca4 fix(resolve): correctly handle .eth domains
This should have been handled down inside the DNSLink resolver. Otherwise, we'll
break any name happens to end in `.eth`.

also fixes #6699
2019-10-07 17:28:13 +09:00
Steven Allen
460c2119e4 daemon: support unix domain sockets for the API/gateway
All the work was client-side. Unix domain socket multiaddrs already worked
server-side.

fixes #4218
2019-09-30 17:21:28 -07:00
Steven Allen
164dd287be
Merge pull request #6675 from ipfs/feat/systemd-activation
add systemd support
2019-09-30 15:22:44 -07:00
Hector Sanjuan
c45ec19f37 Update go-libp2p-http (and go-libp2p-gostream)
Manually removed some newly-appeared // indirect imports as
they seem to just pollute the go.mod.
2019-09-27 16:14:27 -07:00
Steven Allen
0d0b4fc857 feat(systemd): extract socket activation logic 2019-09-27 16:09:17 -07:00
Steven Allen
429c4b537c implement systemd socket activation
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-09-27 16:08:30 -07:00
Steven Allen
9ee4adfc7c chore(dep): update everything
* multiaddr (fixes issues when the latest go-multiaddr is imported)
* libp2p (lots of fixes)
* prometheus
* gogo/protobuf

fixes #6676
2019-09-26 14:50:02 -07:00
Steven Allen
a8fbd066d7 make: move all test deps to a separate module
1. This means those deps don't get pulled in unless we actually need to test.
2. It means we can cordon all the golangci-lint module replace hacks off into a
   separate package.
2019-09-11 11:43:50 -07:00
Steven Allen
150b6dd1bd plugins: add support for plugin configs
For now, configs specified in `daemon --init-config` and `init CONFIG` are not
available. We should fix this eventually but isn't necessary for now (and
supporting this will be annoying).
2019-08-29 17:17:23 -07:00
Steven Allen
c8dbdc861f dep: update bitswap
fixes a bunch of lock contention.
2019-08-27 18:51:19 -07:00
Steven Allen
a330a3835f dep: update bbloom
Fixes some unsafe uses of the "unsafe" package.
2019-08-23 18:48:00 -07:00
Steven Allen
fe9ac603a7 dep: update mdns
fixes a long-standing race condition
2019-08-23 18:46:50 -07:00
Steven Allen
0c8ae4d250 dep: update datastore and swarm
* Swarm: fixes data race.
* Datastore: make delete idempotent.
2019-08-23 18:26:21 -07:00
Steven Allen
590ff37310 dep: update core interfaces 2019-08-23 17:02:23 -07:00
Steven Allen
a2a70d2cc0 use 2048 keys everywhere else 2019-08-23 14:36:42 -07:00
Steven Allen
0871fa3779 chore: fix import grouping 2019-08-23 14:27:59 -07:00
Cole Brown
f5ea1af519 Use 2048 bit RSA keys in sharness and bench 2019-08-23 14:26:20 -07:00
Cole Brown
1bcf51e02d Update go-libp2p, fix tests with weak RSA keys 2019-08-23 14:26:20 -07:00
Steven Allen
19db7c8a33 dep: update blockstore + bbloom
Fixes several unsafety issues. Works towards #4485.
2019-08-23 11:35:43 -07:00
Steven Allen
45d6d9dcce build: fix build on go 1.13
fixes #6603
2019-08-22 10:01:54 -07:00
Steven Allen
4f6069f218 cmds/refs: fix ipfs refs for sharded directories
fixes #6596
2019-08-21 18:25:46 -07:00
Steven Allen
055803d35f switch from ARC cache to a 2Q cache
fixes #6590 (potential non-OSS patent issue)
2019-08-20 13:46:41 -07:00
Steven Allen
75d69286d0 dep: update connmgr 2019-08-06 16:41:45 -07:00
Steven Allen
4b1b8d1b11 dep: update go-bitswap to fix a memory leak 2019-08-01 12:02:35 -07:00
Steven Allen
521a29956b fix and improve the writable gateway
1. Fix handling of PUT. The simple implementation was the correct
   implementation, I have no idea what was going on here.
2. Use MFS everywhere to reduce code duplication and add support for sharded
   directories.
3. _Correctly_ block IPNS.
4. Remove the dependency on `core.IpfsNode`.
5. Remove support for putting empty directories with a well-known CID. It was
   useless as directories are automatically created.
2019-07-25 19:22:56 -07:00
Steven Allen
9738d81c0c switch to new merkledag walk functions
EnumerateChildrenAsync has been renamed to WalkParallel to reflect the fact
that:

1. It visits the root.
2. It's parallel, not async.

To mirror this change, EnumerateChildren has also been renamed to Walk and now
behaves the same (except that it's not parallel).
2019-07-16 16:34:21 -07:00
Steven Allen
7256af5969 readme: fix CI badge 2019-07-16 09:51:16 -07:00
Łukasz Magiera
02f7bc8ced Fix build with go-filestore 2019-07-15 16:02:29 +02:00
Łukasz Magiera
3f7927f1d8 Update imports to go-filestore 2019-07-15 15:52:34 +02:00
Łukasz Magiera
cb4ca03218 mod: Import extracted filestore 2019-07-15 15:50:14 +02:00
Steven Allen
4f6d6e11fe dep: update go-multiaddr-dns
fixes #6485
2019-07-09 15:21:54 -07:00
Steven Allen
70e499afbc
Merge pull request #6421 from ipfs/chore/extract-provider
Extract provider module to `go-ipfs-provider`
2019-07-03 16:33:53 -07:00
Michael Avila
72fef7f529
Update to provider with timestamp based queue 2019-07-03 16:26:11 -07:00
Michael Avila
20c8c85e2d
Add go-ipfs-provider as dependency 2019-07-03 14:21:24 -07:00
Steven Allen
074305690a fix: ignore stale APIs
fixes #5784
2019-06-29 11:17:38 +02:00
Steven Allen
5d29073925 dep: pull in latest go event bus
There was a panic in the old version.
2019-06-28 06:26:35 +02:00
Steven Allen
d3d5db2657 dep: fix badger version
revert to v1.6
2019-06-28 06:25:36 +02:00
Steven Allen
7889932ae9 dep: update swarm/maddr-filter
Reduces allocations/CPU when handling many inbound connections.
2019-06-27 18:14:15 +02:00
Jakub Sztandera
4db0ce7385 dep: update go-libp2p@0.2.0 to fix go-libp2p-core breakage
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-06-24 16:29:59 +02:00
Jakub Sztandera
a7f8d69008 Update go-ds-badger
Use replace to require go-libp2p-core@0.0.3
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-06-21 17:34:24 +02:00