Skip to content

Add EVM WriteReport block timestamp proto field and feature flag - #2554

Merged
Krish-vemula merged 3 commits into
mainfrom
feat/evm-write-report-block-timestamp
Nov 18, 2026
Merged

Krish-vemula merged 3 commits into
mainfrom
feat/evm-write-report-block-timestamp

Conversation

@Krish-vemula

@Krish-vemula Krish-vemula commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What

  • Regenerates pkg/capabilities/v2/chain-capabilities/evm/client.pb.go for the new WriteReportReply.block_timestamp field.
  • Adds the PerWorkflow.FeatureEVMWriteReportBlockTimestampActivePeriod cresettings flag, disabled by default ([2100, 2101]). It mirrors FeatureAptosWriteReportBlockTimestampActivePeriod. Also updates defaults.json/defaults.toml (generated), the README flowchart and settings_test.go.

Why

Lets the EVM capability return the block timestamp in WriteReportReply for SLO latency tracking, as Aptos and Stellar already do.

The flag is keyed on the workflow execution timestamp. All DON nodes therefore switch it on for the same executions, which keeps replies consistent across nodes during a rolling upgrade.

Dependencies

  • Depends on chainlink-protos #486. Bump chainlink-protos/cre/go to the merged commit before merging.

Testing

  • go test ./pkg/settings/... ./pkg/capabilities/v2/chain-capabilities/evm/...

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

✅ API Diff Results - github.com/smartcontractkit/chainlink-common

✅ Compatible Changes (3)

pkg/capabilities/v2/chain-capabilities/evm.(*WriteReportReply) (1)
  • GetBlockTimestamp — ➕ Added
pkg/capabilities/v2/chain-capabilities/evm.WriteReportReply (1)
  • BlockTimestamp — ➕ Added
pkg/settings/cresettings.Workflows (1)
  • FeatureEVMWriteReportBlockTimestampActivePeriod — ➕ Added

📄 View full apidiff report

@Krish-vemula
Krish-vemula force-pushed the feat/evm-write-report-block-timestamp branch from 1aaa138 to 6ce6b18 Compare November 18, 2026 18:17
@Krish-vemula
Krish-vemula marked this pull request as ready for review November 18, 2026 18:38
@Krish-vemula
Krish-vemula requested review from a team as code owners November 18, 2026 18:38
Copilot AI balanced review requested due to automatic review settings November 18, 2026 18:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the EVM write-report timestamp and feature-flag configuration changes.

No open issues 🎉

1 file not reviewed
  • pkg/capabilities/v2/chain-capabilities/evm/client.pb.go: Generated file
What changed in this PR

Adds protobuf and configuration support for EVM write-report block timestamps, preparing for latency tracking with workflow-execution-based activation.

Changes:

  • Adds optional block_timestamp in microseconds to the generated EVM WriteReportReply.
  • Introduces the EVM timestamp feature flag, disabled by default with a 2100–2101 activation window.
  • Updates the protobuf dependency, generated settings defaults, documentation, and unmarshalling test.
File Description
pkg/​settings/​cresettings/​settings.go Defines the feature flag and disabled default.
pkg/​settings/​cresettings/​settings_test.go Tests unmarshalling the flag’s activation window.
pkg/​settings/​cresettings/​README.md Adds the flag to the settings flowchart.
pkg/​settings/​cresettings/​defaults.toml Includes the generated TOML default.
pkg/​settings/​cresettings/​defaults.json Includes the generated JSON default.
pkg/​capabilities/​v2/​chain-capabilities/​evm/​client.pb.go Adds the timestamp field, getter, and protobuf descriptor.
go.sum Updates checksums for the protobuf dependency.
go.mod Bumps the CRE protobuf dependency.

Review effort: Balanced

@Krish-vemula
Krish-vemula requested a review from jmank88 November 18, 2026 21:02
@Krish-vemula
Krish-vemula added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 34af4a1 Nov 18, 2026
33 of 34 checks passed
@Krish-vemula
Krish-vemula deleted the feat/evm-write-report-block-timestamp branch November 18, 2026 22:38
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.

4 participants