Skip to content

Commit 1dc88fe

Browse files
committed
Register a custom shard indexer for the dagstore to recognize data segment indices when present.
This change will result in lotus parsing deals for local indexing according to filecoin-project/FIPs#512 This is a continuation of filecoin-project/dagstore#154 - This piece of the logic was seen as filecoin-specific rather than part of common dagstore functionality. A parallel to this logic is expected to be ported also to boost, but there remain confguration in the use of the dagstore where this is the common locations where this indexing functionality can be registered.
1 parent 3f74840 commit 1dc88fe

File tree

3 files changed

+205
-44
lines changed

3 files changed

+205
-44
lines changed

go.mod

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@ require (
3030
github.com/elastic/gosigar v0.14.2
3131
github.com/etclabscore/go-openrpc-reflect v0.0.36
3232
github.com/fatih/color v1.13.0
33-
github.com/filecoin-project/dagstore v0.5.2
33+
github.com/filecoin-project/dagstore v0.7.1-0.20230413113916-67a2ac2b7bdd
3434
github.com/filecoin-project/filecoin-ffi v0.30.4-0.20200910194244-f640612a1a1f
3535
github.com/filecoin-project/go-address v1.1.0
3636
github.com/filecoin-project/go-amt-ipld/v4 v4.0.0
3737
github.com/filecoin-project/go-bitfield v0.2.4
3838
github.com/filecoin-project/go-cbor-util v0.0.1
3939
github.com/filecoin-project/go-commp-utils v0.1.3
4040
github.com/filecoin-project/go-crypto v0.0.1
41+
github.com/filecoin-project/go-data-segment v0.0.0-20230405162552-449951f6e8c5
4142
github.com/filecoin-project/go-data-transfer/v2 v2.0.0-rc4
4243
github.com/filecoin-project/go-fil-commcid v0.1.0
4344
github.com/filecoin-project/go-fil-commp-hashhash v0.1.0
@@ -78,15 +79,15 @@ require (
7879
github.com/influxdata/influxdb1-client v0.0.0-20200827194710-b269163b24ab
7980
github.com/ipfs/bbloom v0.0.4
8081
github.com/ipfs/go-blockservice v0.5.0
81-
github.com/ipfs/go-cid v0.4.0
82+
github.com/ipfs/go-cid v0.4.1
8283
github.com/ipfs/go-cidutil v0.1.0
8384
github.com/ipfs/go-datastore v0.6.0
8485
github.com/ipfs/go-ds-badger2 v0.1.3
8586
github.com/ipfs/go-ds-leveldb v0.5.0
8687
github.com/ipfs/go-ds-measure v0.2.0
8788
github.com/ipfs/go-fs-lock v0.0.7
8889
github.com/ipfs/go-graphsync v0.14.3
89-
github.com/ipfs/go-ipfs-blockstore v1.2.0
90+
github.com/ipfs/go-ipfs-blockstore v1.3.0
9091
github.com/ipfs/go-ipfs-blocksutil v0.0.1
9192
github.com/ipfs/go-ipfs-chunker v0.0.5
9293
github.com/ipfs/go-ipfs-ds-help v1.1.0
@@ -99,15 +100,15 @@ require (
99100
github.com/ipfs/go-ipld-format v0.4.0
100101
github.com/ipfs/go-libipfs v0.7.0
101102
github.com/ipfs/go-log/v2 v2.5.1
102-
github.com/ipfs/go-merkledag v0.9.0
103+
github.com/ipfs/go-merkledag v0.10.0
103104
github.com/ipfs/go-metrics-interface v0.0.1
104105
github.com/ipfs/go-metrics-prometheus v0.0.2
105-
github.com/ipfs/go-unixfs v0.4.3
106-
github.com/ipfs/go-unixfsnode v1.5.2
106+
github.com/ipfs/go-unixfs v0.4.4
107+
github.com/ipfs/go-unixfsnode v1.6.0
107108
github.com/ipfs/interface-go-ipfs-core v0.11.1
108109
github.com/ipld/go-car v0.5.0
109-
github.com/ipld/go-car/v2 v2.7.0
110-
github.com/ipld/go-codec-dagpb v1.5.0
110+
github.com/ipld/go-car/v2 v2.10.0
111+
github.com/ipld/go-codec-dagpb v1.6.0
111112
github.com/ipld/go-ipld-prime v0.20.0
112113
github.com/ipld/go-ipld-selector-text-lite v0.0.1
113114
github.com/ipni/index-provider v0.11.0
@@ -133,14 +134,15 @@ require (
133134
github.com/multiformats/go-multiaddr v0.8.0
134135
github.com/multiformats/go-multiaddr-dns v0.3.1
135136
github.com/multiformats/go-multibase v0.1.1
137+
github.com/multiformats/go-multicodec v0.8.1
136138
github.com/multiformats/go-multihash v0.2.1
137139
github.com/multiformats/go-varint v0.0.7
138140
github.com/open-rpc/meta-schema v0.0.0-20201029221707-1b72ef2ea333
139141
github.com/polydawn/refmt v0.89.0
140142
github.com/prometheus/client_golang v1.14.0
141143
github.com/raulk/clock v1.1.0
142144
github.com/raulk/go-watchdog v1.3.0
143-
github.com/stretchr/testify v1.8.1
145+
github.com/stretchr/testify v1.8.2
144146
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
145147
github.com/urfave/cli/v2 v2.16.3
146148
github.com/whyrusleeping/bencher v0.0.0-20190829221104-bb6607aa8bba
@@ -151,16 +153,16 @@ require (
151153
github.com/xorcare/golden v0.6.1-0.20191112154924-b87f686d7542
152154
github.com/zyedidia/generic v1.2.1
153155
go.opencensus.io v0.24.0
154-
go.opentelemetry.io/otel v1.12.0
156+
go.opentelemetry.io/otel v1.13.0
155157
go.opentelemetry.io/otel/bridge/opencensus v0.33.0
156158
go.opentelemetry.io/otel/exporters/jaeger v1.2.0
157159
go.opentelemetry.io/otel/sdk v1.11.1
158160
go.uber.org/atomic v1.10.0
159161
go.uber.org/fx v1.18.2
160162
go.uber.org/multierr v1.9.0
161163
go.uber.org/zap v1.24.0
162-
golang.org/x/crypto v0.5.0
163-
golang.org/x/exp v0.0.0-20230129154200-a960b3787bd2
164+
golang.org/x/crypto v0.6.0
165+
golang.org/x/exp v0.0.0-20230213192124-5e25df0256eb
164166
golang.org/x/net v0.7.0
165167
golang.org/x/sync v0.1.0
166168
golang.org/x/sys v0.5.0
@@ -234,7 +236,7 @@ require (
234236
github.com/huin/goupnp v1.0.3 // indirect
235237
github.com/iancoleman/orderedmap v0.1.0 // indirect
236238
github.com/ipfs/go-bitfield v1.1.0 // indirect
237-
github.com/ipfs/go-block-format v0.1.1 // indirect
239+
github.com/ipfs/go-block-format v0.1.2 // indirect
238240
github.com/ipfs/go-filestore v1.2.0 // indirect
239241
github.com/ipfs/go-ipfs-cmds v0.8.2 // indirect
240242
github.com/ipfs/go-ipfs-delay v0.0.1 // indirect
@@ -284,7 +286,6 @@ require (
284286
github.com/mr-tron/base58 v1.2.0 // indirect
285287
github.com/multiformats/go-base36 v0.2.0 // indirect
286288
github.com/multiformats/go-multiaddr-fmt v0.1.0 // indirect
287-
github.com/multiformats/go-multicodec v0.8.0 // indirect
288289
github.com/multiformats/go-multistream v0.4.1 // indirect
289290
github.com/nikkolasg/hexjson v0.1.0 // indirect
290291
github.com/nkovacs/streamquote v1.0.0 // indirect
@@ -324,7 +325,7 @@ require (
324325
github.com/zondax/ledger-go v0.12.1 // indirect
325326
go.opentelemetry.io/otel/metric v0.33.0 // indirect
326327
go.opentelemetry.io/otel/sdk/metric v0.33.0 // indirect
327-
go.opentelemetry.io/otel/trace v1.12.0 // indirect
328+
go.opentelemetry.io/otel/trace v1.13.0 // indirect
328329
go.uber.org/dig v1.15.0 // indirect
329330
go4.org v0.0.0-20200411211856-f5505b9728dd // indirect
330331
golang.org/x/mod v0.7.0 // indirect

0 commit comments

Comments
 (0)