Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop chainId from legacy transaction schema #239

Closed
wants to merge 1 commit into from

Conversation

s1na
Copy link
Contributor

@s1na s1na commented Jun 16, 2022

AFAIK legacy txes don't have a chainId field. Only type-1 and type-2 txes.

@shemnon
Copy link
Contributor

shemnon commented Jun 17, 2022

I disagree. The v field encodes the chainId, and the RPCs extract it and expose it. While the RLP on-chain encoding does not have a field that is just the chain ID it is part of the transaction data and clients should still be expected to expose it for RPC calls.

@lightclient
Copy link
Member

I agree with @shemnon here. I think this is an issue we should fix in geth so that legacy txs which use EIP-155 have a chainId field, because right now it's as you said @s1na -- only type 1 and type 2 txs return chainId.

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.

3 participants