2d138b056e
Golint: fix golint warnings in merkledag submodule
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-06 17:45:09 +01:00
f9d935b984
rename import of go-ipld-format from node/format to ipld
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-29 11:55:34 -08:00
fe8846fcd7
gx: mass update
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-24 15:58:44 -08:00
dfe7ef4fcf
gx: update go-multihash
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-14 13:09:51 -08:00
70d6629940
gx: update go-cid, go-multibase, base32
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-09-01 17:46:49 -07:00
35984c2c88
Change IPFS to use the new pluggable Block to IPLD decoding framework.
...
Later, we should:
1. Pull the other node formats out of IPFS (at least the raw one).
2. Pull out the decoder registration/management into a `go-ipld` library.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-11 20:35:16 -07:00
cccc6a94a3
update go-multihash and bubble up changes
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-11 19:27:43 -07:00
8ab93aaeb2
Update go-datastore to 1.2.2, go-cid to 0.7.16
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-04 20:18:57 +02:00
13636bef50
blocks: gx import go-block-format
...
And updated related dependencies.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-06-29 22:12:14 +02:00
518adec022
adder: add support for using CidV1
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:36:39 -04:00
b15470d548
bubble up updates from go-multihash changes
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-20 20:28:04 +02:00
b4eeff2d84
update go-multihash and bubble up deps
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-12 12:25:41 -08:00
7c8a8a81cf
Add json unmarshal code and fix panic
...
A panic would occur when a link was created with a nil cid, this should
be allowable, just catch the potential problem and skip marshaling the
cid.
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-14 16:11:07 -08:00
13f6528e30
merkledag: respond with correct cid to Cid() method
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-29 14:46:50 -08:00
cd6d2d24f4
merkledag: retain cid types when roundtripping through a ProtoNode
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-29 11:32:41 -08:00
53d47669da
bubble up go-datastore deps
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-28 22:29:38 -08:00
396c629301
update to newer ipld node interface with Copy and better Tree
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-15 18:00:49 -08:00
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
48f7e14277
extract node interface
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-14 07:53:48 -07:00
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
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
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
c8fe495934
integrate CIDv0
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-07 13:32:32 -07:00
bf23516dc0
cache encoded data when reading dag nodes from disk
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-10 13:13:35 -07:00
b1f77e9e7f
Improve error reporting and fix pin/set_test.go
...
License: MIT
Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
2016-03-04 07:48:34 +01:00
7c11fe57cb
Rename Encoded() to EncodeProtobuf()
...
License: MIT
Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
2016-03-01 09:01:51 +01:00
67c59d871e
Rename Decoded into DecodeProtobuf
...
This function work only with protocol buffer encoding. To make this clear,
rename the function.
License: MIT
Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
2016-03-01 09:01:51 +01:00
3b729b200b
merkledag: Make Node.Unmarshal() private
...
License: MIT
Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
2016-03-01 08:59:44 +01:00
d7dab3afea
Use gx vendored go-ipfs-utils where possible
...
For the rest of the packages in util, move them to thirdparty
and update the references. util is gone!
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-12 17:21:40 -08:00
0d35cc9aea
set data and links nil if not present
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-02 23:38:36 -08:00
aa7d946716
a little more test coverage on merkledag
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-28 21:42:28 -07:00
6e9c72ab37
expose internal/pb packages.
...
we shouldn't use internal packages.
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-10 11:08:49 -07:00
bf22aeec0a
Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs
...
- Modified Godeps/Godeps.json by hand
- [TEST] Updated welcome docs hash to sharness
- [TEST] Updated contact doc
- [TEST] disabled breaking test (t0080-repo refs local)
2015-03-31 12:52:25 -07:00
9a41f76abc
more understandable errors from merkledag decoding
2015-02-26 18:43:27 -08:00
cd65ec614b
merkledag: keep links sorted by name
...
May not be necessary to sort when adding each link--
doing so would be unnecessarily expensive O(n^2) when
constructing nodes -- though n wont be big.
2015-01-06 13:12:22 -08:00
1d08e1d7c2
refactor(merkledag) move proto to internal pb package
...
https://docs.google.com/document/d/1e8kOo3r51b2BWtTs_1uADIA5djfXhPT36s6eHVRIvaU/edit
2014-10-22 15:54:17 -07:00
6e0cfb3273
removed error from return type of blocks.NewBlock()
2014-10-07 20:46:01 +00:00
7968b45e58
vendor dependencies with godep
...
dependencies are vendored into Godeps/_workspace and commit versions are
recorded in Godeps.json
update datastore to e89f0511
update go.crypto
2014-09-09 22:39:42 -07:00
691d1b36bb
integrate bitswap and blockservice into the core package
2014-08-29 11:34:50 -07:00
f718bd6a92
go lint
...
link errors left:
- protocol buffers output is not lint-friendly
2014-07-22 02:20:08 -07:00
3b241486a9
ipfs cat
2014-07-05 17:29:44 -07:00
dfbdf083e2
merkledag objects
2014-07-04 16:55:03 -07:00
09ba434375
gofmt
2014-07-04 15:29:43 -07:00
9cf046dd9d
coding with protobuf
2014-07-04 15:29:18 -07:00
e4ea7ce59a
merkledag
2014-07-04 14:54:20 -07:00