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

TransactionTests Update: ttNonce #958

Merged
merged 3 commits into from
Oct 15, 2021
Merged

TransactionTests Update: ttNonce #958

merged 3 commits into from
Oct 15, 2021

Conversation

marioevz
Copy link
Member

Contains updated TransactionTests for category ttNonce.

"data" : "",
"gasLimit" : "21000",
"gasPrice" : "1",
"nonce" : "115792089237316195423570985008687907853269984665640564039457584007913129639935",
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is not 18446744073709551617 (64 + 1)

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed the values in latest commit.

"data" : "",
"gasLimit" : "21000",
"gasPrice" : "1",
"nonce" : "18446744073709551615",
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is 64 - 1, need to name the test accordingly

and where the exact bound ?
I think it because there was a discussion on nonce cap.

Copy link
Member Author

Choose a reason for hiding this comment

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

It fails on 2 ** 64, so I changed the tests to match the correct values and added another test case in latest commit.

{
"expectException" :
{
">=Frontier": "NonceTooLong"
Copy link
Collaborator

Choose a reason for hiding this comment

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

so here it did fail on >256 ?

Copy link
Member Author

Choose a reason for hiding this comment

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

It correctly fails on 2**64, I updated all tests.

@winsvega winsvega merged commit 0576ae3 into develop Oct 15, 2021
@winsvega winsvega deleted the txNonce branch October 15, 2021 11:31
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