mev-boost-relay
mev-boost-relay copied to clipboard
expose eligible_at and signed_at in data api
📝 Summary
Exposes eligible_at
and signed_at
via data api
⛱ Motivation and Context
The two relevant timestamps were captured and added in #301. For research purposes, it would be convenient to expose these as part of builder_blocks_received
and proposer_payload_delivered
. I have opted for providing the millisecond timestamps as milliseconds should be the roughly the relevant timeframe for sim and is aligned with the existing timestamp_ms
field in BidTraceV2WithTimestampJSON
. Additionally, tests for /relay/v1/data/bidtraces/builder_blocks_received
have been added.
This is definitely not the cleanest implementation, so any and all feedback is appreciated!
📚 References
#301 #260 (edited to include)
✅ I have run these commands
- [x]
make lint
- [x]
make test-race
- [x]
go mod tidy
- [x] I have seen and agree to
CONTRIBUTING.md