Skip to content

fix(rpc): remove incorrect metrics increment in transaction_by_hash#131

Closed
sashaodessa wants to merge 1 commit intobase:mainfrom
sashaodessa:patch-1
Closed

fix(rpc): remove incorrect metrics increment in transaction_by_hash#131
sashaodessa wants to merge 1 commit intobase:mainfrom
sashaodessa:patch-1

Conversation

@sashaodessa
Copy link
Copy Markdown
Contributor

Problem

The getTransactionByHash RPC method was incorrectly incrementing the get_transaction_receipt metric when returning transactions from flashblocks cache. This caused metric pollution and reduced observability accuracy.

Solution

  • Removed the erroneous get_transaction_receipt.increment(1) call from the flashblocks cache path in transaction_by_hash
  • This ensures metrics accurately reflect actual RPC method usage

@haardikk21
Copy link
Copy Markdown
Collaborator

This is not erroneous, since transaction_by_hash does rely on get_transaction_receipt

@haardikk21 haardikk21 closed this Oct 10, 2025
refcell pushed a commit that referenced this pull request Feb 18, 2026
## Motivation

alloy-rs/alloy#1349

## Solution

Same as alloy-rs/alloy#1397

## PR Checklist

- [x] Added Tests
- [x] Added Documentation
- [ ] Breaking changes
mw2000 pushed a commit that referenced this pull request Mar 9, 2026
* feat: latest kona

* fmt

* fix

* feat: small fixes, new elfs

* nit: rm build

* clippy

* docs
mw2000 pushed a commit that referenced this pull request Mar 16, 2026
* feat: latest kona

* fmt

* fix

* feat: small fixes, new elfs

* nit: rm build

* clippy

* docs
haardikk21 pushed a commit that referenced this pull request Mar 17, 2026
* feat: latest kona

* fmt

* fix

* feat: small fixes, new elfs

* nit: rm build

* clippy

* docs
mw2000 pushed a commit that referenced this pull request Mar 19, 2026
* feat: latest kona

* fmt

* fix

* feat: small fixes, new elfs

* nit: rm build

* clippy

* docs
mw2000 pushed a commit that referenced this pull request Mar 23, 2026
* feat: latest kona

* fmt

* fix

* feat: small fixes, new elfs

* nit: rm build

* clippy

* docs
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.

2 participants