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

Fix json-rpc id to 1 for all tests #350

Merged
merged 1 commit into from
Jan 10, 2023

Conversation

lightclient
Copy link
Member

It's much easier to read test diffs when the id isn't changing with each fill.

@@ -1,2 +1,2 @@
>> {"jsonrpc":"2.0","id":9,"method":"eth_getBalance","params":["0xaa00000000000000000000000000000000000000","0x2ce0e9a8a0b33d45aeb70cf6878d2943deddcf6600e06b84546eaf0a0d2b9643"]}
<< {"jsonrpc":"2.0","id":9,"result":"0x1"}
>> {"jsonrpc":"2.0","id":1,"method":"eth_getBalance","params":["0xaa00000000000000000000000000000000000000","0x0c5761302ec071b5c04130bf2c8c9167fe8f2efeb756c47d0f44eff683e1203e"]}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually helped me catch the schema error from #326 because it has a leading 0 which isn't allowed for uint, but is for hash32.

@lightclient
Copy link
Member Author

Also it looks like I have generated some tests in #326 with invalid block hashes. Hivetest2 is failing and regenerating with id == 1 shows a different hash. I believe this PR will resolve the issue.

@lightclient lightclient merged commit 02ed294 into ethereum:main Jan 10, 2023
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.

1 participant