mev-boost-relay icon indicating copy to clipboard operation
mev-boost-relay copied to clipboard

expose eligible_at and signed_at in data api

Open rajivpo opened this issue 1 year ago • 8 comments

📝 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

rajivpo avatar Apr 20 '23 04:04 rajivpo