Skip to content

ethclient/gethclient: use common.Hash to debug_traceTransaction#32404

Merged
rjl493456442 merged 1 commit into
ethereum:masterfrom
Fibonacci747:refactor/gethclient-trace-hash-param
Aug 19, 2025
Merged

ethclient/gethclient: use common.Hash to debug_traceTransaction#32404
rjl493456442 merged 1 commit into
ethereum:masterfrom
Fibonacci747:refactor/gethclient-trace-hash-param

Conversation

@Fibonacci747

Copy link
Copy Markdown
Contributor
  • Unifies hash argument encoding: TraceTransaction now passes common.Hash directly, matching TraceBlock and other RPC calls.
  • Leverages common.Hash JSON marshaling (0x‑prefixed hex via MarshalText); no functional change expected.
  • Aligns with RPC handler signature (tracers.API.TraceBlockByHash(ctx, hash common.Hash, ...)) and existing ethclient usage (e.g., eth_getBlockByHash, eth_getTransactionByHash).
  • Simplifies code by avoiding unnecessary Hex() conversion and improves consistency/readability.

…stency

Unifies hash argument encoding: TraceTransaction now passes common.Hash directly, matching TraceBlock and other RPC calls.
Leverages common.Hash JSON marshaling (0x‑prefixed hex via MarshalText); no functional change expected.
Aligns with RPC handler signature (tracers.API.TraceBlockByHash(ctx, hash common.Hash, ...)) and existing ethclient usage (e.g., eth_getBlockByHash, eth_getTransactionByHash).
Simplifies code by avoiding unnecessary Hex() conversion and improves consistency/readability.
@Fibonacci747 Fibonacci747 requested a review from fjl as a code owner August 12, 2025 05:59
@rjl493456442 rjl493456442 changed the title fix(gethclient): pass common.Hash to debug_traceTransaction for consistency ethclient/gethclient: use common.Hash to debug_traceTransaction Aug 19, 2025
@rjl493456442 rjl493456442 added this to the 1.16.3 milestone Aug 19, 2025
@rjl493456442 rjl493456442 merged commit dffa1f5 into ethereum:master Aug 19, 2025
1 of 2 checks passed
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Aug 29, 2025
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Aug 31, 2025
gzliudan added a commit to XinFinOrg/XDPoSChain that referenced this pull request Aug 31, 2025
gballet pushed a commit to gballet/go-ethereum that referenced this pull request Sep 11, 2025
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Feb 11, 2026
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Feb 12, 2026
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Feb 12, 2026
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Feb 13, 2026
AnilChinchawale pushed a commit to XinFinOrg/XDPoSChain that referenced this pull request Feb 28, 2026
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