ObolNetwork / charon

Charon (pronounced 'kharon') is a Proof of Stake Ethereum Distributed Validator Client
https://docs.obol.tech/
Other
202 stars 89 forks source link

Retrieve a full execution payload in the `test mev` command #3269

Open OisinKyne opened 2 months ago

OisinKyne commented 2 months ago

๐ŸŽฏ Problem to be solved

We currently get a mev relays health status in the test command. This is certainly more accurate than pinging the URL, which we had been doing originally to infer request duration, but is still not the real hot path when a relay is in use.

๐Ÿ› ๏ธ Proposed solution

If we were to also give the test mev command an optional CL REST API (--beacon-node-endpoints), it would be able to figure out the correct details to ask a relay for a payload for the real time next slot. This would be more representative than hitting the health endpoint. It could probably be implemented as a second test.

๐Ÿงช Tests

OisinKyne commented 2 months ago

@gsora says mev-boost has a testutil for doing something very like this