Use the global Filecoin proof parameter cache

オープン
#181 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@galargh がすでに取り組んでいます。

2026年9月8日 から。

  • #204 @galargh による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
docker, rust

調査の方向性

src/paths.rs の foc_devnet_proof_parameters() から始め、次に downloader、起動前提条件チェック、status コマンド、ならびに Lotus、lotus-miner、Curio のコンテナ bind mount によるその使用箇所を追跡します。完了条件は、これらすべてが標準のグローバルホストキャッシュを使用し、追加のダウンロードなしで既存のキャッシュを再利用し、サポート対象プラットフォームの権限とプライベートキャッシュからの移行に対応することです。

索引モデルが issue の本文から書いたものです。

説明

Problem

foc-devnet stores Filecoin proof parameters in its private data directory:

~/.foc-devnet/docker/volumes/cache/filecoin-proof-parameters

The path comes from foc_devnet_proof_parameters() in src/paths.rs and is used by the downloader, startup prerequisite checks, status command, and the Lotus/lotus-miner/Curio container bind mounts.

Proof parameters are not specific to a foc-devnet run or to foc-devnet itself. Keeping a private copy prevents reuse of an existing system-wide Filecoin parameter cache and can cause another large download and duplicate disk usage when other Filecoin tools are installed.

Expected behavior

Use the standard global Filecoin proof parameter cache on the host (normally /var/tmp/filecoin-proof-parameters) and bind-mount that directory into the containers at the existing /var/tmp/filecoin-proof-parameters path.

Acceptance criteria

  • An existing global Filecoin proof parameter cache is reused without downloading another foc-devnet-specific copy.
  • Parameter downloading, prerequisite validation, status reporting, and all relevant container bind mounts resolve to the same global host directory.
  • The chosen path works on every supported host platform, with permissions and any migration from the current foc-devnet-private cache handled or documented.
主要言語
Rust
スター
4
フォーク
6
平均マージ
8時間 17分
マージ済み PR(30日)
14

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

FilOzone/foc-devnet のほかの issue

FilOzone/foc-devnet の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。