Readiness succeeds before a valid eth_chainId when no expected chain ID is supplied

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

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

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

2026年11月26日 から。

  • #132 @Osraka による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
20/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
typescript

調査の方向性

Start with Server.start() and the readiness tests described in the issue. Check how the eth_chainId response is validated before the optional expected-chain comparison, then run the readiness tests with invalid-then-valid, invalid-until-timeout, valid-first, and explicit mismatch cases. Done means invalid responses do not signal readiness, while valid responses and the existing mismatch behavior work as described.

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

説明

At 2c4f686, Server.start() with a configured external URL and no expected chain ID reports readiness after any HTTP-200 string result for eth_chainId. That includes a warm-up response that isn't a chain ID. EIP-695 specifies a hexadecimal integer string.

I used a localhost-only fixture which returns "initializing" on its first probe, then "0x539". The real Prool server returns from start() after one probe. I expected it to wait for the second response. All eight existing readiness tests pass when run separately from the file's unrelated Anvil setup.

Would it make sense to validate the returned chain ID independently of comparing it with an expected chain? A small follow-up would cover invalid then valid, invalid until timeout, and the existing explicit chain-ID mismatch behavior without changing instance lifecycle behavior.

Readiness controls

I extended the localhost-only fixture to cover a permanently invalid response and a valid first response. On 2c4f686, the valid-first control succeeds with one probe, but all three invalid-then-valid variants stop after the invalid probe, and the invalid-only case resolves instead of timing out. With a local hexadecimal result check before the optional expected-chain comparison, all 13 tests passed (eight existing readiness cases and five new cases). No live RPC endpoint or Anvil process was used.

主要言語
TypeScript
スター
142
フォーク
28
平均マージ
4時間 15分
マージ済み PR(30日)
8

環境構築

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

はじめの一歩

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

wevm/prool のほかの issue

wevm/prool の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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