Skip to content

Conversation

Fibonacci747
Copy link
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
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