mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-10 02:40:11 +08:00
gx: update ipldcbor
I previously optimized the IPLD cbor decoder to *not* encode and then re-decode objects when constructing them with `WrapObject`. Unfortunately, we rely on this to canonicalize the object before computing the tree/links. License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
parent
4c3487017c
commit
e8f6486a9c
@ -16,7 +16,7 @@ import (
|
||||
config "github.com/ipfs/go-ipfs/repo/config"
|
||||
testutil "github.com/ipfs/go-ipfs/thirdparty/testutil"
|
||||
unixfs "github.com/ipfs/go-ipfs/unixfs"
|
||||
cbor "gx/ipfs/QmemYymP73eVdTUUMZEiSpiHeZQKNJdT5dP2iuHssZh1sR/go-ipld-cbor"
|
||||
cbor "gx/ipfs/QmXgUVPAxjMLZSyxx818YstJJAoRg3nyPWENmBLVzLtoax/go-ipld-cbor"
|
||||
)
|
||||
|
||||
// `echo -n 'hello, world!' | ipfs add`
|
||||
|
||||
@ -5,8 +5,8 @@ import (
|
||||
"io"
|
||||
"io/ioutil"
|
||||
|
||||
ipldcbor "gx/ipfs/QmXgUVPAxjMLZSyxx818YstJJAoRg3nyPWENmBLVzLtoax/go-ipld-cbor"
|
||||
node "gx/ipfs/QmYNyRZJBUYPNrLszFmrBrPJbsBh2vMsefz5gnDpB5M1P6/go-ipld-format"
|
||||
ipldcbor "gx/ipfs/QmemYymP73eVdTUUMZEiSpiHeZQKNJdT5dP2iuHssZh1sR/go-ipld-cbor"
|
||||
)
|
||||
|
||||
// DagParser is function used for parsing stream into Node
|
||||
|
||||
@ -11,8 +11,8 @@ import (
|
||||
blocks "gx/ipfs/QmVA4mafxbfH5aEvNz8fyoxC6J1xhAtw88B4GerPznSZBg/go-block-format"
|
||||
|
||||
cid "gx/ipfs/QmTprEaAA2A9bst5XH7exuyi5KzNMK3SEDNN8rBDnKWcUS/go-cid"
|
||||
ipldcbor "gx/ipfs/QmXgUVPAxjMLZSyxx818YstJJAoRg3nyPWENmBLVzLtoax/go-ipld-cbor"
|
||||
node "gx/ipfs/QmYNyRZJBUYPNrLszFmrBrPJbsBh2vMsefz5gnDpB5M1P6/go-ipld-format"
|
||||
ipldcbor "gx/ipfs/QmemYymP73eVdTUUMZEiSpiHeZQKNJdT5dP2iuHssZh1sR/go-ipld-cbor"
|
||||
)
|
||||
|
||||
// TODO: We should move these registrations elsewhere. Really, most of the IPLD
|
||||
|
||||
@ -261,9 +261,9 @@
|
||||
},
|
||||
{
|
||||
"author": "whyrusleeping",
|
||||
"hash": "QmemYymP73eVdTUUMZEiSpiHeZQKNJdT5dP2iuHssZh1sR",
|
||||
"hash": "QmXgUVPAxjMLZSyxx818YstJJAoRg3nyPWENmBLVzLtoax",
|
||||
"name": "go-ipld-cbor",
|
||||
"version": "1.2.6"
|
||||
"version": "1.2.7"
|
||||
},
|
||||
{
|
||||
"author": "lgierth",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user