Skip to content

Harden Stellar WriteReport reply path - #757

Draft
ilija42 wants to merge 1 commit into
mainfrom
fix/stellar-write-report-outcome
Draft

Harden Stellar WriteReport reply path#757
ilija42 wants to merge 1 commit into
mainfrom
fix/stellar-write-report-outcome

Conversation

@ilija42

@ilija42 ilija42 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

This PR makes the Stellar WriteReport reply show what the node did.

Unconfirmed submit. If the forwarder state is not visible after a paid submit, the error text now gives the tx hash and the local tx status. The reply also has the hash, the local status, the fee and the close time, and the receiver status is not set.

Transaction lookup failure. The code now makes the reply from the confirmed forwarder outcome before it calls GetTransaction. If the call fails, the reply has no fee, ledger or close time, but the write does not fail.

Early-return telemetry. The code sends WriteReportSuccessfulEarlyReturn only when it sees a terminal state of a peer before the slot of this node opens. The code does not send it on a timeout.

Signature validation. One function, validateSignatureSet, checks the count, the length and the unique signer keys, and the entry point and the encoder call it. The entry point now rejects a repeated signer and a count above 31.

Note for reviewers. The generated gRPC wrapper in chainlink-common (stellar/server/client_server_gen.go, WriteReport case) discards the reply and the ResponseMetadata when the capability returns an error. This is why the error text has the hash, and it also stops the billing that #736 added on this path.

Tests cover each change.

…not be confirmed, keep known outcomes when the transaction lookup fails, emit early-return telemetry only on an observed terminal state, and validate report signatures with one shared rule set
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-10T17:55:53.384913Z 9916cf3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

👋 ilija42, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@cl-sonarqube-production

Copy link
Copy Markdown

@ilija42
ilija42 marked this pull request as draft September 10, 2026 17:56
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