Flashbot error handling issue
まだ誰も着手していません。
評価
- 難易度
- 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:
- The network check before simulation is incorrect.
- Error handling is missing when canceling bundles.
Problem:
- 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
- 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.
Solution:
- Update the network check to use network == Network.Mainnet.
- Add appropriate error handling for the bundle cancellation process.
- 主要言語
- Python
- スター
- 430
- フォーク
- 212
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
flashbots/web3-flashbots のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
flashbots/web3-flashbots#100 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
flashbots/web3-flashbots#97 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
flashbots/web3-flashbots#80 · コメント 2 件 ·
flashbots/web3-flashbots の issue をすべて見る
似ている issue
-
Python Volcengine provider returns failures instead of raising them対応中かも @Ricardo-M-L が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
agent-infra/sandbox#248 ·
-
Textractor leaves empty temporary files when remote retrieval fails対応中かも @HuaTNA が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
test(bm_generation): pin the learning parameters and CPU sync shortcut対応中かも @iloveeyjafjalla が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
qboson/kaiwu-pytorch-plugin#1341 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
elder-plinius/V3R1T4S#625 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
foxglove/mcap#1907 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信