Short confirmation timeouts report on-chain operations as failed when they may still succeed
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript, typescript
- 領域
- backend, blockchain
調査の方向性
Start by reading the Curio wait functions in packages/synapse-core/src/sp/, then inspect the listed pay/*, erc20/approve.ts, warm-storage/terminate-service.ts and warm-storage/add-approved-provider.ts receipt waits, plus StorageContext.commit() and the piece batcher. Check how RETRY_CONSTANTS.TIMEOUT is used and read related issue #996. Done means confirmation waits can be configured without changing HTTP timeouts, receipt waits use an explicit timeout, and timeout errors preserve the transaction hash and indicate the outcome is unknown.
索引モデルが issue の本文から書いたものです。
説明
Problem
The SDK reports a commit or payment operation as failed if the transaction isn't confirmed within a short fixed window, even though the transaction may still land afterwards.
- Curio status waits (
waitForAddPieces,waitForCreateDataSet,waitForCreateDataSetAddPieces,waitForTerminateService, deletion waits inpackages/synapse-core/src/sp/) default toRETRY_CONSTANTS.TIMEOUT= 5 minutes (10 Filecoin epochs). - viem
waitForTransactionReceiptis called without atimeoutinpay/*,erc20/approve.ts,warm-storage/terminate-service.tsandwarm-storage/add-approved-provider.ts, so it uses viem's default of 3 minutes (6 epochs).
When the network is congested, either window can expire before the transaction is included. The caller gets a TimeoutError for an operation that later succeeds on-chain, and may retry it, creating duplicates (e.g. a second data set or a double deposit).
The SDK layer also gives no way to change these values. StorageContext.commit() calls SP.waitForAddPieces(addPiecesResult) and the piece batcher calls SP.waitForAddPieces({ statusUrl }), neither passing a timeout.
Proposal
- Raise the defaults for confirmation waits (separately from
RETRY_CONSTANTS.TIMEOUT, which is also used for plain HTTP requests), e.g. aCONFIRMATION_TIMEOUTsized for congested conditions. - Pass an explicit
timeouttowaitForTransactionReceipt. - Let SDK callers override the confirmation timeout on commit/upload.
- On timeout, return an error that carries the tx hash and says the outcome is unknown, so callers can check later instead of retrying blindly.
Related
- #996:
waitForCreateDataSetAddPiecesignores itstimeoutoption and doesn't accept asignal.
- 主要言語
- TypeScript
- スター
- 28
- フォーク
- 35
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 44
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
FilOzone/synapse-sdk のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
FilOzone/synapse-sdk#1105 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
FilOzone/synapse-sdk#1039 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
FilOzone/synapse-sdk#749 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
FilOzone/synapse-sdk#1114 ·
メンテナーはふだん 1 日以内に返信
-
The KeyspaceKey root-signature has no chain/contract binding, so phishing one signature recovers the actual encryption key対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
FilOzone/synapse-sdk#1110 · コメント 3 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
FilOzone/synapse-sdk の issue をすべて見る
似ている issue
-
maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
assistant-ui/assistant-ui#10499 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
bug server-sequentialthinking v2
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
modelcontextprotocol/servers#5526 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
app-server bug CLI
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
cimd: default originBoundFields rejects a cross-origin client_uri, which the CIMD draft forbidsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
better-auth/better-auth#12458 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信