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

rpc: Use yParity for non-legacy transactions #9574

Merged
merged 2 commits into from
Mar 5, 2024
Merged

Conversation

shohamc1
Copy link
Contributor

@shohamc1 shohamc1 commented Mar 4, 2024

v is not used in any transaction types other than legacy transactions.

Before:

{
...
		"type": "0x2",
		"accessList": [],
		"chainId": "0x13881",
		"v": "0x1",
		"r": "0x3b8d9ed8ccda5bc4ab0c9ec6165cec0052b2cf2fc77f19dc1daf6b349174080e",
		"s": "0x222f86d644ad797d9dc1be772adff862cfe499c5113ec3c0e14e0a63c75ca158"
	}
}

After:

...
		"type": "0x2",
		"accessList": [],
		"chainId": "0x13881",
		"yParity": "0x1",
		"v": "0x1",
		"r": "0x3b8d9ed8ccda5bc4ab0c9ec6165cec0052b2cf2fc77f19dc1daf6b349174080e",
		"s": "0x222f86d644ad797d9dc1be772adff862cfe499c5113ec3c0e14e0a63c75ca158"
	}
}

@shohamc1 shohamc1 linked an issue Mar 4, 2024 that may be closed by this pull request
@shohamc1 shohamc1 marked this pull request as ready for review March 4, 2024 03:15
@shohamc1 shohamc1 merged commit 5b18679 into devel Mar 5, 2024
7 checks passed
@shohamc1 shohamc1 deleted the shohamc1/yparity-fix branch March 5, 2024 02:01
mriccobene pushed a commit to mriccobene/erigon that referenced this pull request Mar 13, 2024
`v` is not used in any transaction types other than legacy transactions.

Before:
```
{
...
		"type": "0x2",
		"accessList": [],
		"chainId": "0x13881",
		"v": "0x1",
		"r": "0x3b8d9ed8ccda5bc4ab0c9ec6165cec0052b2cf2fc77f19dc1daf6b349174080e",
		"s": "0x222f86d644ad797d9dc1be772adff862cfe499c5113ec3c0e14e0a63c75ca158"
	}
}
```

After:
```
...
		"type": "0x2",
		"accessList": [],
		"chainId": "0x13881",
		"yParity": "0x1",
		"v": "0x1",
		"r": "0x3b8d9ed8ccda5bc4ab0c9ec6165cec0052b2cf2fc77f19dc1daf6b349174080e",
		"s": "0x222f86d644ad797d9dc1be772adff862cfe499c5113ec3c0e14e0a63c75ca158"
	}
}
```
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.

Return yParity from eth_getBlockByNumber
2 participants