Commit Graph

1638 Commits

Author SHA1 Message Date
Jeromy
afce683eae update go-libp2p-swarm with deadlock fixes
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-30 19:16:28 -07:00
Jeromy Johnson
634005a1ab Merge pull request #3324 from ipfs/feat/block-cid-codec
allow cid format selection in block put command
2016-10-29 21:59:19 -07:00
Jeromy Johnson
8d4fd80fc1 Merge pull request #3325 from ipfs/feat/cbor-ipld
Implement cbor ipld nodes and a first pass at the 'dag' command
2016-10-29 21:59:06 -07:00
Jeromy
c6a273fd05 add more helptext to dag commands
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-29 18:03:25 -07:00
Jeromy
f68e1843f4 allow cid format selection in block put command
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-28 19:03:14 -07:00
Jeromy
4c5a5c8a8f more cleanup, update cboripld package
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-28 12:56:47 -07:00
Jeromy
f7d3f61673 clean up some code, update cbor package, and add tests
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-27 15:49:41 -07:00
Jeromy
67c2a4ec14 make path resolver no longer require whole node for construction
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-25 15:04:44 -07:00
Jeromy
6b797f10a4 Implement cbor ipld nodes and a first pass at the 'dag' command
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-25 12:07:28 -07:00
Jeromy
eac13abaec update to new cid and ipld node packages
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-25 09:54:04 -07:00
Kevin Atkinson
65ffff2418 Add tests that PosInfo() is getting set.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-24 16:37:57 -04:00
Kevin Atkinson
73f9a90cbf Create a FilestoreNode object to carry PosInfo
When doing a filestore add, we wrap whatever nodes we create in a
FilestoreNode object and add the PosInfo to it so that the filestore
will be able to extract information as needed.

Edited by whyrusleeping

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-24 16:30:45 -04: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
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
48f7e14277 extract node interface
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-14 07:53:48 -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
affb06d558 run gofmt
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-12 07:00:38 -07: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
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
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
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
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
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
56a8c43aaf add experimental dht client mode flag
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:10:20 -07:00
Jeromy
e43c770530 update libp2p and dht packages
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-25 23:42:14 -07:00
Jeromy
5457a85cef
Merge branch 'version/0.4.3-rc4'
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-20 19:10:10 -07:00
Jeromy Johnson
e10453b67b Merge pull request #3220 from ipfs/deps/extract-dht
routing: use extracted dht and routing code
2016-09-19 19:38:37 -07:00
Jeromy Johnson
87ecb92fce Merge pull request #3225 from ipfs/kevina/rm-block-refactor
"block rm": move core functionally into blockstore_util package
2016-09-19 19:30:46 -07:00
George Antoniadis
4e8485648f Use routing/notifications
License: MIT
Signed-off-by: George Antoniadis <george@noodles.gr>
2016-09-19 18:28:00 -07:00
Jeromy
2e6e0f18e3 routing: use extracted dht and routing code
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-19 18:28:00 -07:00
Jeromy Johnson
f23cd5c84c Merge pull request #3189 from ipfs/feat/metrics/interface
metrics: introduce go-metrics-interface
2016-09-19 18:02:14 -07:00
Kevin Atkinson
5901e57dfc "block rm": move core functionally into blockstore_util package
Note: this code can not go in the "blockstore" package due to a
circular dependency with the "pin" package.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-09-15 04:15:44 -04:00
Kevin Atkinson
0a459f65ac Pinner: Provide Pinned.String() method and use it in "block rm"
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-09-15 04:15:36 -04:00
Kevin Atkinson
7bf30c3111 Adder: Don't hold the PinLock when not pinning.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-09-14 16:55:39 -04:00
Jeromy Johnson
0aa136a98e Merge pull request #3206 from ipfs/feat/writable-flag
gateway: fix --writable flag :|
2016-09-14 13:50:32 -04:00
Jakub Sztandera
a5899a4fb9
deps: update go-metrics-interface and -prometheus to 0.1.2
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-13 14:00:10 +02:00
Jakub Sztandera
7faa32459a
metrics: fix peer number metric in offline mode
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-13 14:00:10 +02:00