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(runtime): add access key nonce range #4064

Merged
merged 7 commits into from
Mar 11, 2021

Conversation

bowenwang1996
Copy link
Collaborator

Address the access key nonce issue discussed here 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

runtime/runtime/src/actions.rs Outdated Show resolved Hide resolved
@bowenwang1996 bowenwang1996 force-pushed the add-access-key-nonce-range branch 2 times, most recently from c717cc1 to 7590c89 Compare March 10, 2021 01:53
runtime/runtime/src/verifier.rs Outdated Show resolved Hide resolved
runtime/runtime/src/verifier.rs Outdated Show resolved Hide resolved
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.

Tracking issue for GHSA-2v6r-g342-282f
4 participants