Jeromy Johnson
01ea333751
Merge pull request #3315 from ipfs/fix/metrics-injection
...
Fix metrics injection
2016-10-18 15:45:29 -07:00
Jeromy
8ce9963289
fix add/cat of small files
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-18 15:26:44 -07:00
Jeromy
3796e7020e
raw dag: make raw nodes work in cat and get, add tests
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-18 11:07:32 -07:00
Jeromy Johnson
716aa867f5
Merge pull request #3310 from ipfs/kevina/cid2dskey
...
ds-help: add helper functions to convert from Cid to DsKey and the reverse
2016-10-18 10:24:20 -07:00
Jakub Sztandera
06a5381c2a
feat: make metrics injection log an error instead of warning
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-10-18 18:19:02 +02:00
Jakub Sztandera
e254f0d8b5
test: check if metrics work in sharness
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-10-18 12:28:50 +02:00
Jakub Sztandera
de34ef813b
Fix metrics being injected after node initalization
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-10-18 08:59:15 +02:00
Jeromy
ded60a7356
unixfs: allow use of raw merkledag nodes for unixfs files
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-17 16:51:39 -07:00
Jeromy Johnson
62fcf7e9e2
Merge pull request #3308 from ipfs/kevina/cli-refactor
...
cli: refactor to expose argument parsing functionality
2016-10-17 19:03:23 -04:00
Kevin Atkinson
c4fbe348f8
ds-help: add helper func to convert from Cid to DsKey and the reverse
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-17 18:13:07 -04:00
Jeromy Johnson
9cb6ac17a7
Merge pull request #3301 from ipfs/feat/node-interface
...
Turn merkledag.Node into an interface
2016-10-17 16:24:45 -04:00
Kevin Atkinson
8570a5293b
cli: refactor to expose argument parsing functionality
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-16 03:35:39 -04:00
Jeromy Johnson
5ec0e59407
Merge pull request #3288 from ipfs/fix/readme-go-get
...
readme: fix go get invocations
2016-10-15 09:04:12 -04:00
Jeromy
48f7e14277
extract node interface
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-14 07:53:48 -07:00
Jeromy Johnson
d5c716a3f0
Merge pull request #3302 from ipfs/test/pin-fail-stress
...
add test to be run to detect future regressions in pinsets
2016-10-14 10:21:43 -04:00
Jeromy
8a33801607
add test to be run to detect future regressions in pinsets
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-12 09:29:09 -07:00
Jeromy
01aee44679
merkledag: change 'Node' to be an interface
...
Also change existing 'Node' type to 'ProtoNode' and use that most
everywhere for now. As we move forward with the integration we will try
and use the Node interface in more places that we're currently using
ProtoNode.
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-12 08:16:03 -07:00
Jeromy Johnson
015d476c4f
Merge pull request #3297 from ipfs/feat/bitswap-cid
...
bitswap: protocol extension to handle cids
2016-10-12 10:13:30 -04:00
Jeromy Johnson
711cd8f005
Merge pull request #3294 from ipfs/kevina/dup-prov-cache-fix
...
Create a write-through block service
2016-10-12 10:13:09 -04:00
Jeromy
affb06d558
run gofmt
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-12 07:00:38 -07:00
Jakub Sztandera
7e4b74bf5e
Change the test from being Has based to Put based
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-10-11 15:08:01 -04:00
Jakub Sztandera
9854683daa
test: check if NewWriteThrough is not calling Has
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-10-11 15:04:07 -04:00
Kevin Atkinson
1173c003f5
Create a "write through" BlockService.
...
Create a block service where all writes are guaranteed to go though
to the blockstore.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-11 14:57:02 -04:00
Kevin Atkinson
dfd5e9aa1e
Make BlockService an interface.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-11 14:50:06 -04:00
Jeromy
9e02094d43
Ipfs release v0.4.4 - pinset bug hotfix
...
-----BEGIN PGP SIGNATURE-----
iQIcBAABCAAGBQJX+9dTAAoJEIfjTf5y3CtrfWcP/jOZlNTRYMVL3z9Rg/QttFz1
vA1zf0lGB1nlOQy/bXHDnw2rzK37V6qs/fRC8AMoRQLyLDMeKEozJJDBbk5d+vyC
iNMk9Tte55NFOzxebeB8Xdby779UQv40eNwGtvw+xmO9azGxAFYKblRqHuEXotWV
MMMNgFO0JXchzMmJPGy1cRfIWOLXfSAvrXEgdA7rQ3bR5A5TY/VsFJIAMxanm2Ar
qMghAKTL1IsDrAltwtTM5jzgOlJh4F77UB9sh2iFrSXSSUQG7f23xXLao1fZbFKW
D3hbwaCq+xeP3Lk9GAv3RhrqTPZGNYkMOXErTU2towMip51V/2wDA/3bzl5+s27w
BfCLsoj1BlFkg/sWcjM6bOXh2rx5qcXoDP56HEDkeBYL/jR0lkHZisBLve/mNDzW
yEv7e+geZLhoTwt8KkNiDg7/6PiP1T7B6YJARXKWFDIXhvK74Xh0I95RU31SgKFn
ecZHElwaNWSG8lAecVIoKcnmrY6qQD8cU6uwIAK0e03fvlKC1LgTNE5BcQkdjARs
vdTSaaMZbHkdMSyJV8YUwIFaI0ltazWEjM3b/XkeHeIeYN42s8oGSW26548gqG8I
+gNtWXYcTFSwpcUqFatKKogIpBDuUMCel8NXgE7x0ibiI+GqrFU1mtt/hcuJwIJc
3O345x+n42ck0xfLe4vz
=d+lG
-----END PGP SIGNATURE-----
Merge tag 'v0.4.4' into release
Ipfs release v0.4.4 - pinset bug hotfix
2016-10-10 13:11:46 -07:00
Jeromy
f4d7369c4a
bitswap: protocol extension to handle cids
...
This change adds the /ipfs/bitswap/1.1.0 protocol. The new protocol
adds a 'payload' field to the protobuf message and deprecates the
existing 'blocks' field. The 'payload' field is an array of pairs of cid
prefixes and block data. The cid prefixes are used to ensure the correct
codecs and hash functions are used to handle the block on the receiving
end.
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-10 08:19:31 -07:00
Jeromy Johnson
edf2b52f7a
Merge pull request #3298 from ipfs/feat/bump-0.4.5-dev
...
bump dev version to 0.4.5
2016-10-10 08:17:53 -07:00
Jeromy
20ceb9241b
bump dev version to 0.4.5
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-10 07:50:27 -07:00
Jeromy
d905d48519
Ipfs v0.4.4 - Hotfix pinset release
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-10 07:41:36 -07:00
Jeromy Johnson
7962903a2a
Merge pull request #3290 from ipfs/feat/el-cid-2
...
The conquest of El Cid, Pt. 2
2016-10-10 06:37:00 -07:00
Jeromy Johnson
391b78a23c
Merge pull request #3273 from ipfs/fix/pin-fail
...
fix bug in pinsets and add a stress test for the scenario
2016-10-08 17:09:06 -07:00
Jeromy
282bdc4816
cid: integrate cid into bitswap and blockstores
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-08 12:14:58 -07:00
Jeromy Johnson
2fd045f08f
Merge pull request #3255 from ipfs/kevina/getlinks
...
Add DAGService.GetLinks() method and use it in the GC and elsewhere.
2016-10-08 11:45:43 -07:00
Jeromy
cb3bda78b3
fix bug in pinsets and add a stress test for the scenario
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-07 14:34:27 -07:00
Jeromy
a49483bf58
Remove legacy multiset 'data' fields, comment and cleanup more
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-06 19:08:59 -07:00
Kevin Atkinson
772164cc7a
Fix EnumerateChildren & hasChild to take a *cid.Cid instead of []*mdag.Link
...
Author: Kevin Atkinson <k@kevina.org>
Fix EnumerateChildren & hasChild to take a *cid.Cid instead of []*mdag.Link
Author: Jeromy Johnson <why@ipfs.io>
make FetchGraph use a cid
pin: fix TestPinRecursiveFail
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-06 11:55:31 -04:00
Kevin Atkinson
721df367a2
Don't use a separate LinkService for DAGService.GetLinks()
...
Instead make LinkService a part of DAGService. The LinkService is now
simply an interface that DAGService implements. Also provide a
GetOfflineLinkService() method that the GC uses to get an offline
instance.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-06 11:52:39 -04:00
Lars Gierth
dd1caddccb
readme: fix go get invocations
...
They didn't previously make sure the code was up-to-date.
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-10-06 17:42:10 +02:00
Kevin Atkinson
3899194cb0
Add DAGService.GetLinks() method and use it in the GC and elsewhere.
...
This method will use the (also new) LinkService if it is available to
retrieving just the links for a MerkleDAG without necessary having to
retrieve the underlying block.
For now the main benefit is that the pinner will not break when a block
becomes invalid due to a change in the backing file. This is possible
because the metadata for a block (that includes the Links) is stored
separately and thus always available even if the backing file changes.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-06 11:38:41 -04:00
Jeromy
ec9ce83d88
pinset: clean up storeItems logic a bit
...
Switched from using a map to an array since the bounds are
small and fixed. This should save us some significant time and on
accesses
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-05 23:27:24 -07:00
Jeromy
c7e3d5d2ac
add comment detailing the algorithm and fix
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-05 23:27:24 -07:00
Jeromy
1f853c59c3
fix bug in pinsets and add a stress test for the scenario
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-05 23:27:20 -07:00
Jeromy Johnson
67a1b3e1bf
Merge pull request #3284 from ipfs/deps/libp2p-extravaganza
...
update to libp2p 4.0.1 and propogate other changes
2016-10-05 22:52:24 -07:00
Jeromy
1f9ec4e3ed
update to libp2p 4.0.1 and propogate other changes
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-05 22:12:43 -07:00
Jeromy Johnson
15fc223b6a
Merge pull request #3281 from hsanjuan/docs/contribute/broken_link
...
contribute.md: fix broken link to 'ammending commits' doc.
2016-10-05 18:46:38 -07:00
Hector Sanjuan
77b644bdf3
contribute.md: fix broken link to 'ammending commits' doc.
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2016-10-04 12:17:58 +02:00
Jeromy Johnson
5c212d39a2
Merge pull request #3073 from ipfs/feat/test-config-replace
...
Add test for 'ipfs config replace'
2016-10-03 17:29:52 -07:00
Jeromy Johnson
c7a851bb9d
Merge pull request #3276 from ipfs/kevina/adder-error-v2
...
Don't drop error in readStreamedJson.
2016-10-03 15:00:44 -07:00
Jeromy Johnson
429decc906
Merge pull request #3269 from ipfs/feat/dht-client-mode
...
add experimental dht client mode flag
2016-10-01 11:38:08 -07:00
Jeromy Johnson
e1c40dfa34
Merge pull request #3202 from ipfs/feat/floodsub
...
Add a very basic many to many pubsub
2016-10-01 11:10:31 -07:00