Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Flashbot error handling issue

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

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
半日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
blockchain

調査の方向性

examples/simple.py から始め、特に 173 行目付近のネットワークチェックと、receipt を待機して bundle をキャンセルする例外パスを確認してください。Network の値に対するシミュレーション条件を検証し、次にキャンセルの失敗を追跡して、例または関連するテストを実行し、両方のケースが説明どおりに処理されることを確認してください。

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

説明

Flashbot error handling issue

TLDR

There are two issues in the example/simple.py code:

  1. The network check before simulation is incorrect.
  2. Error handling is missing when canceling bundles.

Problem:

  1. Before simulation, the code checks if network == "mainnet". However, when printed, the network value is Network.Mainnet. So it doesn't do simulation for the bundle. The check should be updated to network == Network.Mainnet.
    https://github.com/flashbots/web3-flashbots/blob/d69f57b0f574998c232a6d74e55338fbbd344f64/examples/simple.py#L173
Image
  1. When sending a bundle and waiting for receipts, if the transaction is not included in the target block, it throws a TransactionNotFound error. In this exception block, the code attempts to cancel the bundle without proper error handling. If an error occurs while canceling an invalid bundle, it is not handled correctly.
Image

Solution:

  1. Update the network check to use network == Network.Mainnet.
  2. Add appropriate error handling for the bundle cancellation process.
主要言語
Python
スター
430
フォーク
212
PR マージ指標
30日以内にマージされた PR はありません

環境構築

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

はじめの一歩

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

flashbots/web3-flashbots のほかの issue

flashbots/web3-flashbots の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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