Skip to content

feat(rewards): log per-validator attestation failures with request_id#852

Merged
rickyrombo merged 1 commit into
mainfrom
log-validator-attestation-failures
May 22, 2026
Merged

feat(rewards): log per-validator attestation failures with request_id#852
rickyrombo merged 1 commit into
mainfrom
log-validator-attestation-failures

Conversation

@rickyrombo
Copy link
Copy Markdown
Contributor

When a validator fails to return a reward claim attestation, we silently marked it bad and moved on, leaving no way to see which validator failed or why. Add a warn-level log in fetchAttestations and in the coin redeem inline validator loop with the validator endpoint, owner, claim context (handle, rewardId, specifier), and underlying error.

Also add an ApiServer.requestLogger(c) helper that binds the requestid-middleware request_id into a per-request child of app.logger, and use it in v1ClaimRewards and v1CoinsPostRedeem so handler logs can be correlated with access logs.

When a validator fails to return a reward claim attestation, we silently
marked it bad and moved on, leaving no way to see which validator failed
or why. Add a warn-level log in fetchAttestations and in the coin redeem
inline validator loop with the validator endpoint, owner, claim context
(handle, rewardId, specifier), and underlying error.

Also add an ApiServer.requestLogger(c) helper that binds the
requestid-middleware request_id into a per-request child of app.logger,
and use it in v1ClaimRewards and v1CoinsPostRedeem so handler logs can
be correlated with access logs.
@rickyrombo rickyrombo merged commit f7b9678 into main May 22, 2026
4 checks passed
@rickyrombo rickyrombo deleted the log-validator-attestation-failures branch May 22, 2026 21:41
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.

1 participant