Skip to content

all sol + evm family writer nodes return gas fee - #787

Merged
patrickhuie19 merged 2 commits into
mainfrom
feat/all-writers-meter-tx
Sep 22, 2026
Merged

patrickhuie19 merged 2 commits into
mainfrom
feat/all-writers-meter-tx

Conversation

@patrickhuie19

Copy link
Copy Markdown
Contributor

No description provided.

@patrickhuie19
patrickhuie19 marked this pull request as ready for review September 21, 2026 19:22
@patrickhuie19
patrickhuie19 requested review from a team as code owners September 21, 2026 19:22
silaslenihan
silaslenihan previously approved these changes Sep 21, 2026
return wr.executeWriteReport(ctx, request, metadata, telemetryContext)
}

func (e *WriteReport) getFee(ctx context.Context, txIdempotencyKey string) (*big.Int, error) {

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.

@ilija42, do you recall what the original motivation for fetching fees from TXM was?

// A fee lookup failure is surfaced via monitoring and yields empty metadata instead of
// failing the reply.
func (wr *WriteReport) meteringFromTxSignature(ctx context.Context, telemetryContext monitoring.TelemetryContext, request *solcap.WriteReportRequest, sig solana.Signature) capabilities.ResponseMetadata {
feeInLamports, err := wr.getFee(ctx, sig)

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.

should have retry logic

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added a7f004e

Unheilbar
Unheilbar previously approved these changes Sep 22, 2026
@cl-sonarqube-production

Copy link
Copy Markdown

@patrickhuie19
patrickhuie19 added this pull request to the merge queue Sep 22, 2026
Merged via the queue into main with commit 5eeef03 Sep 22, 2026
35 checks passed
@patrickhuie19
patrickhuie19 deleted the feat/all-writers-meter-tx branch September 22, 2026 18:27
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