2020-11-06 19:39:15 +00:00
|
|
|
module github.com/filecoin-project/lotus/testplans/lotus-soup
|
2020-06-24 10:52:23 +00:00
|
|
|
|
2021-06-02 10:51:23 +00:00
|
|
|
go 1.16
|
2020-06-24 10:52:23 +00:00
|
|
|
|
|
|
|
require (
|
2021-09-01 23:47:32 +00:00
|
|
|
contrib.go.opencensus.io/exporter/prometheus v0.4.0
|
2020-07-27 13:58:27 +00:00
|
|
|
github.com/codeskyblue/go-sh v0.0.0-20200712050446-30169cf553fe
|
2020-06-29 17:11:53 +00:00
|
|
|
github.com/davecgh/go-spew v1.1.1
|
2020-11-23 19:43:18 +00:00
|
|
|
github.com/drand/drand v1.2.1
|
2021-09-01 23:47:32 +00:00
|
|
|
github.com/filecoin-project/go-address v0.0.6
|
|
|
|
github.com/filecoin-project/go-data-transfer v1.11.4
|
|
|
|
github.com/filecoin-project/go-fil-markets v1.13.3
|
|
|
|
github.com/filecoin-project/go-jsonrpc v0.1.5
|
2021-09-15 15:22:25 +00:00
|
|
|
github.com/filecoin-project/go-state-types v0.1.1-0.20210915140513-d354ccf10379
|
2020-06-24 10:52:23 +00:00
|
|
|
github.com/filecoin-project/go-storedcounter v0.0.0-20200421200003-1c99c62e8a5b
|
2021-08-30 15:57:24 +00:00
|
|
|
github.com/filecoin-project/lotus v0.0.0-00010101000000-000000000000
|
2021-06-02 10:38:07 +00:00
|
|
|
github.com/filecoin-project/specs-actors v0.9.14
|
2021-09-21 11:31:16 +00:00
|
|
|
github.com/google/uuid v1.3.0
|
|
|
|
github.com/gorilla/mux v1.8.0
|
|
|
|
github.com/hashicorp/go-multierror v1.1.1
|
|
|
|
github.com/influxdata/influxdb v1.9.4 // indirect
|
2021-08-30 15:57:24 +00:00
|
|
|
github.com/ipfs/go-cid v0.1.0
|
2021-09-21 11:31:16 +00:00
|
|
|
github.com/ipfs/go-datastore v0.4.6
|
2021-09-01 23:47:32 +00:00
|
|
|
github.com/ipfs/go-ipfs-files v0.0.9
|
2020-06-24 13:16:10 +00:00
|
|
|
github.com/ipfs/go-ipld-format v0.2.0
|
integrate DAG store and CARv2 in deal-making (#6671)
This commit removes badger from the deal-making processes, and
moves to a new architecture with the dagstore as the cental
component on the miner-side, and CARv2s on the client-side.
Every deal that has been handed off to the sealing subsystem becomes
a shard in the dagstore. Shards are mounted via the LotusMount, which
teaches the dagstore how to load the related piece when serving
retrievals.
When the miner starts the Lotus for the first time with this patch,
we will perform a one-time migration of all active deals into the
dagstore. This is a lightweight process, and it consists simply
of registering the shards in the dagstore.
Shards are backed by the unsealed copy of the piece. This is currently
a CARv1. However, the dagstore keeps CARv2 indices for all pieces, so
when it's time to acquire a shard to serve a retrieval, the unsealed
CARv1 is joined with its index (safeguarded by the dagstore), to form
a read-only blockstore, thus taking the place of the monolithic
badger.
Data transfers have been adjusted to interface directly with CARv2 files.
On inbound transfers (client retrievals, miner storage deals), we stream
the received data into a CARv2 ReadWrite blockstore. On outbound transfers
(client storage deals, miner retrievals), we serve the data off a CARv2
ReadOnly blockstore.
Client-side imports are managed by the refactored *imports.Manager
component (when not using IPFS integration). Just like it before, we use
the go-filestore library to avoid duplicating the data from the original
file in the resulting UnixFS DAG (concretely the leaves). However, the
target of those imports are what we call "ref-CARv2s": CARv2 files placed
under the `$LOTUS_PATH/imports` directory, containing the intermediate
nodes in full, and the leaves as positional references to the original file
on disk.
Client-side retrievals are placed into CARv2 files in the location:
`$LOTUS_PATH/retrievals`.
A new set of `Dagstore*` JSON-RPC operations and `lotus-miner dagstore`
subcommands have been introduced on the miner-side to inspect and manage
the dagstore.
Despite moving to a CARv2-backed system, the IPFS integration has been
respected, and it continues to be possible to make storage deals with data
held in an IPFS node, and to perform retrievals directly into an IPFS node.
NOTE: because the "staging" and "client" Badger blockstores are no longer
used, existing imports on the client will be rendered useless. On startup,
Lotus will enumerate all imports and print WARN statements on the log for
each import that needs to be reimported. These log lines contain these
messages:
- import lacks carv2 path; import will not work; please reimport
- import has missing/broken carv2; please reimport
At the end, we will print a "sanity check completed" message indicating
the count of imports found, and how many were deemed broken.
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Dirk McCormick <dirkmdev@gmail.com>
Co-authored-by: Raúl Kripalani <raul@protocol.ai>
Co-authored-by: Dirk McCormick <dirkmdev@gmail.com>
2021-08-16 22:34:32 +00:00
|
|
|
github.com/ipfs/go-log/v2 v2.3.0
|
2021-09-01 23:47:32 +00:00
|
|
|
github.com/ipfs/go-merkledag v0.4.1
|
integrate DAG store and CARv2 in deal-making (#6671)
This commit removes badger from the deal-making processes, and
moves to a new architecture with the dagstore as the cental
component on the miner-side, and CARv2s on the client-side.
Every deal that has been handed off to the sealing subsystem becomes
a shard in the dagstore. Shards are mounted via the LotusMount, which
teaches the dagstore how to load the related piece when serving
retrievals.
When the miner starts the Lotus for the first time with this patch,
we will perform a one-time migration of all active deals into the
dagstore. This is a lightweight process, and it consists simply
of registering the shards in the dagstore.
Shards are backed by the unsealed copy of the piece. This is currently
a CARv1. However, the dagstore keeps CARv2 indices for all pieces, so
when it's time to acquire a shard to serve a retrieval, the unsealed
CARv1 is joined with its index (safeguarded by the dagstore), to form
a read-only blockstore, thus taking the place of the monolithic
badger.
Data transfers have been adjusted to interface directly with CARv2 files.
On inbound transfers (client retrievals, miner storage deals), we stream
the received data into a CARv2 ReadWrite blockstore. On outbound transfers
(client storage deals, miner retrievals), we serve the data off a CARv2
ReadOnly blockstore.
Client-side imports are managed by the refactored *imports.Manager
component (when not using IPFS integration). Just like it before, we use
the go-filestore library to avoid duplicating the data from the original
file in the resulting UnixFS DAG (concretely the leaves). However, the
target of those imports are what we call "ref-CARv2s": CARv2 files placed
under the `$LOTUS_PATH/imports` directory, containing the intermediate
nodes in full, and the leaves as positional references to the original file
on disk.
Client-side retrievals are placed into CARv2 files in the location:
`$LOTUS_PATH/retrievals`.
A new set of `Dagstore*` JSON-RPC operations and `lotus-miner dagstore`
subcommands have been introduced on the miner-side to inspect and manage
the dagstore.
Despite moving to a CARv2-backed system, the IPFS integration has been
respected, and it continues to be possible to make storage deals with data
held in an IPFS node, and to perform retrievals directly into an IPFS node.
NOTE: because the "staging" and "client" Badger blockstores are no longer
used, existing imports on the client will be rendered useless. On startup,
Lotus will enumerate all imports and print WARN statements on the log for
each import that needs to be reimported. These log lines contain these
messages:
- import lacks carv2 path; import will not work; please reimport
- import has missing/broken carv2; please reimport
At the end, we will print a "sanity check completed" message indicating
the count of imports found, and how many were deemed broken.
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Dirk McCormick <dirkmdev@gmail.com>
Co-authored-by: Raúl Kripalani <raul@protocol.ai>
Co-authored-by: Dirk McCormick <dirkmdev@gmail.com>
2021-08-16 22:34:32 +00:00
|
|
|
github.com/ipfs/go-unixfs v0.2.6
|
2021-09-01 23:47:32 +00:00
|
|
|
github.com/ipld/go-car v0.3.2-0.20211001225732-32d0d9933823
|
2020-06-30 16:02:02 +00:00
|
|
|
github.com/kpacha/opencensus-influxdb v0.0.0-20181102202715-663e2683a27c
|
2021-09-21 11:31:16 +00:00
|
|
|
github.com/libp2p/go-libp2p v0.15.0
|
|
|
|
github.com/libp2p/go-libp2p-core v0.9.0
|
2020-06-26 14:16:50 +00:00
|
|
|
github.com/libp2p/go-libp2p-pubsub-tracer v0.0.0-20200626141350-e730b32bf1e6
|
2021-09-01 23:47:32 +00:00
|
|
|
github.com/multiformats/go-multiaddr v0.4.1
|
2021-01-26 10:53:27 +00:00
|
|
|
github.com/testground/sdk-go v0.2.6
|
2021-06-16 22:04:45 +00:00
|
|
|
go.opencensus.io v0.23.0
|
|
|
|
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
|
2020-06-24 10:52:23 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// This will work in all build modes: docker:go, exec:go, and local go build.
|
|
|
|
// On docker:go and exec:go, it maps to /extra/filecoin-ffi, as it's picked up
|
|
|
|
// as an "extra source" in the manifest.
|
2020-11-06 19:39:15 +00:00
|
|
|
replace github.com/filecoin-project/filecoin-ffi => ../../extern/filecoin-ffi
|
2021-08-30 15:57:24 +00:00
|
|
|
|
|
|
|
replace github.com/filecoin-project/lotus => ../../
|