Add an xone exception mapper for Hive consume-engine

Aperta
#4,097 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #4098 di @AnilChinchawaleXDC — chiusa senza merge

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
testing

Direzione di ricerca

Start by comparing the existing geth, reth, and ethrex exception mappers in packages/testing/src/execution_testing/client_clis/clis/, then inspect the mapper registry in packages/testing/src/execution_testing/cli/pytest_commands/plugins/consume/simulators/helpers/exceptions.py. Add the xone mapper and register "xone", leaving the documented INCORRECT_BLOCK_FORMAT ambiguity unmapped; the change is done when xone Engine API error strings resolve to the intended existing exceptions and the mapper is recognized by the consume-engine plugin.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I would like to add an exception mapper for xOne (xOneRS) so that Hive consume-engine can classify this client's Engine API validationError strings as EEST exceptions, the same way it already does for geth, reth, ethrex and the other execution clients.

xOneRS (https://xone.sh) is a Rust execution client, licensed GPL-3.0-or-later. It is alpha / experimental. It runs nodes on pq-devnet-1 and follows the Bogota devnet. Ethereum Mainnet is not supported yet.

The change is:

  • a new XoneExceptionMapper in packages/testing/src/execution_testing/client_clis/clis/xone.py, mapping observed xone error text to the existing TransactionException and BlockException values
  • a registration of "xone" in EXCEPTION_MAPPERS in packages/testing/src/execution_testing/cli/pytest_commands/plugins/consume/simulators/helpers/exceptions.py

The mappings come from xone's Engine API error strings. A few fixtures share a short string that would also match INCORRECT_BLOCK_FORMAT, so that case is left unmapped on purpose until a complete run shows it is safe. That is noted in a comment in the file.

A branch with this change is already on our fork: https://github.com/xOneSH/execution-specs/tree/feat/xone-exception-mapper

Please assign this issue so a pull request can be opened in line with CONTRIBUTING. The PR will link this issue with a closing keyword.

Lingua principale
Python
Stelle
1.2k
Fork
543
Merge medio
2g 19h
PR unite (30g)
81

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ethereum/execution-specs

Tutte le issue di ethereum/execution-specs

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.