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

feat: stabilize nonce range for implicit accounts #5802

Merged
merged 11 commits into from
Dec 14, 2021
Merged

Conversation

Longarithm
Copy link
Member

@Longarithm Longarithm commented Dec 13, 2021

Stabilize #5482. Also, update changelog for 1.23.0 release.

Reasoning

Previously, we changed formulas for tx nonce computation to avoid tx hash collisions: #3779
Later we figured out that it was not enabled for implicit accounts - on its creation, we simply created new access key with nonce 0.
So we need this to make formula consistent among all accounts, and to get rid of tx hash collisions completely. The fix itself is straightforward.

Testing

Existing tests.

Copy link
Contributor

@EgorKulikov EgorKulikov left a comment

Choose a reason for hiding this comment

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

Great work

Comment on lines +18 to +21
### Non-protocol Changes

* Increase RocksDB cache size to 512 MB for state column to speed up blocks processing [#5212](https://github.com/near/nearcore/pull/5212)

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this somehow related to this feature?

Copy link
Member Author

Choose a reason for hiding this comment

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

No. This is not the first time I try to push multiple changes in one PR -_-

Let me leave it for this PR, but I write this comment as note for myself to separate such changes in the future.

@Longarithm Longarithm self-assigned this Dec 14, 2021
@near-bulldozer near-bulldozer bot merged commit ee1dc47 into master Dec 14, 2021
@near-bulldozer near-bulldozer bot deleted the stab-nonce branch December 14, 2021 18:28
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.

4 participants