-
Notifications
You must be signed in to change notification settings - Fork 614
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
Tracking issue for GHSA-2v6r-g342-282f #3779
Labels
A-transaction-runtime
Area: transaction runtime (transaction and receipts processing, state transition, etc)
Comments
bowenwang1996
added
the
A-transaction-runtime
Area: transaction runtime (transaction and receipts processing, state transition, etc)
label
Jan 5, 2021
near-bulldozer bot
pushed a commit
that referenced
this issue
Mar 11, 2021
Address the access key nonce issue discussed [here](https://gov.near.org/t/issue-with-access-key-nonce/749) by setting nonce to `(block_height - 1) * 1e6` and capping the access key nonces of transactions included in a block to `block_height * 1e6`. Fixes #3779. Test plan --------- * `test_transaction_hash_collision` * `test_chunk_transaction_validity` * `test_transaction_nonce_too_large` * nayduck
near-bulldozer bot
pushed a commit
that referenced
this issue
Nov 29, 2021
Fix access key nonce for implicit accounts to fully address the issue #3779. The change is straightforward - formula for nonce should be the same as for explicit accounts, as here - https://github.com/near/nearcore/blob/7f7347fc008d592a2679101f4518cfdb8df4e617/runtime/runtime/src/actions.rs#L561-L562 ## Test plan - `test_transaction_hash_collision_for_implicit_account_[ok|fail]` - check that tx is applied or rejected depending on the protocol version.
near-bulldozer bot
pushed a commit
that referenced
this issue
Dec 14, 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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-transaction-runtime
Area: transaction runtime (transaction and receipts processing, state transition, etc)
Tracks security advisory issue https://github.com/near/nearcore/security/advisories/GHSA-2v6r-g342-282f
The text was updated successfully, but these errors were encountered: