Skip to content

server: track bids received to clarify empty response logs#892

Open
mark-liu wants to merge 1 commit intoflashbots:developfrom
mark-liu:fix/clarify-no-bid-log-869
Open

server: track bids received to clarify empty response logs#892
mark-liu wants to merge 1 commit intoflashbots:developfrom
mark-liu:fix/clarify-no-bid-log-869

Conversation

@mark-liu
Copy link

📝 Summary

When all relay bids are filtered (e.g. below min-bid), the info log says
"no bid received" — but bids were received, they just weren't acceptable.
This tracks the count of bids returned by relays in bidResp and uses it
to distinguish between genuinely receiving nothing vs filtering everything out.

  • bidsReceived set from len(relayBids) after relay goroutines complete
  • Log says "no acceptable bid received" bidsReceived=N when bids were filtered
  • Log says "no bid received" when relays truly returned nothing
  • Two new subtests in TestGetHeaderBids covering both cases

⛱ Motivation and Context

Fixes #869. Also addresses #489.

Running at default (info) log level, the only signal a validator gets when
bids exist but fall below min-bid is "no bid received". The debug-level
"bid received" and "ignoring bid below min-bid value" logs don't show up
unless you explicitly lower the level. This has confused operators debugging
why blocks were built locally.

📚 References


✅ I have run these commands

  • make lint
  • make test-race
  • go mod tidy

Note: make test-race times out on develop (without this PR's changes)
due to TestGetPayload/"A relay which does not provide the bid gets a JSON request" hanging under the race detector. All tests prior to that pass,
including the new tests added here.

When all relay bids are filtered (e.g. below min-bid), the info log
says "no bid received" which is misleading. Track the number of bids
returned by relays in bidResp and distinguish between genuinely
receiving nothing vs filtering everything out.

Fixes flashbots#869. Also addresses flashbots#489.
@mark-liu
Copy link
Author

Gentle ping — this is a small observability improvement. Happy to adjust if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"no bid received" info level log is misleading

1 participant