Jan Winkelmann
1a3fa80fdb
Add docs for "commands".Command.Run
...
To clarify that if you want to access the request body after writing need to use
multipart requests.
License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>
2016-11-14 22:32:41 +01: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 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
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 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
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
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
Jeromy
91db6f31c2
update floodsub version 0.6.2
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:33:00 -07:00
Jeromy
49ca3af3ff
update to floodsub 0.6.1
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:26:20 -07:00
Jeromy
360f29fade
send discovery off into its own goroutine
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:25:59 -07:00
Jeromy
44c9bb803f
add 'pubsub peers' to list topics
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:25:59 -07:00
Jeromy
c40b3540c4
add 'pubsub ls' to list topics
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:25:31 -07:00
Jeromy
009301bf7f
hide pubsub behind feature flag
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:25:10 -07:00
Jeromy
ff770fadc8
add discovery option, and update to floodsub 0.4.2
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:24:24 -07:00
Jeromy
7ccf96a72f
remove debug log
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:24:24 -07:00
Jeromy
e567b785a0
update floodsub dep
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:24:24 -07:00
Jeromy
4b096c4bba
floodsub: add api for pub/sub
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:23:45 -07:00
Jeromy
a7762da3f8
add note in daemon helptext about new routing type
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:10:20 -07:00
Jeromy
2871decd48
clean up test, run checks on all nodes
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:10:20 -07:00
Jeromy
56a8c43aaf
add experimental dht client mode flag
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:10:20 -07:00
Kevin Atkinson
6ae4edc65a
Don't drop error in readStreamedJson.
...
Better fix than #3230 to make sure errors from addAllAndPin make it to
the client.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-09-29 22:55:49 -04:00
Jeromy Johnson
dcb21bd20e
Merge pull request #3271 from ipfs/fix/race-panic
...
only pass keys down newBlocks chan in bitswap
2016-09-29 17:23:49 -07:00
Jeromy
01ce8e7d71
only pass keys down newBlocks chan in bitswap
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-28 17:08:13 -07:00
Jeromy Johnson
0ac1fd1a8a
Merge pull request #3264 from vasild/fix/tar_command
...
Explicitly specify the input file to tar with "-f -"
2016-09-28 13:27:04 -07:00
Jeromy Johnson
abe44b86ac
Merge pull request #3265 from vasild/fix/make_command
...
use $(MAKE) instead of 'make' in Makefiles (follow-up to f3dc11c )
2016-09-28 12:58:41 -07:00