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

Emulate maximum possible nonce expiration in recording auth mode. #1419

Merged
merged 3 commits into from
Jun 6, 2024

Conversation

dmkozh
Copy link
Contributor

@dmkozh dmkozh commented Jun 5, 2024

What

Emulate maximum possible nonce expiration in recording auth mode.

Why

Currently we don't really know what's the intended signature expiration during the auth simulation. Since there is always a potential option for the user to want to customize their signature expiration at the time of signing the auth (even though that option might not currently exist in the wallets), there is really no way to do better than assuming maximum possible expiration and thus maximum possible rent fee. Since the rent fee is refundable, the end user impact is just a slightly higher fee locked before applying the transaction and refunding the unused rent fee portion.

Known limitations

N/A

Currently we don't really know what's the intended signature expiration during the auth simulation. Since there is always a potential option for the user to want to customize their signature expiration at the time of signing the auth (even though that option might not currently exist in the wallets), there is really no way to do better than assuming maximum possible expiration and thus maximum possible rent fee. Since the rent fee is refundable, the end user impact is just a slightly higher fee locked before applying the transaction and refunding the unused rent fee portion.
@dmkozh dmkozh requested review from graydon, sisuresh and a team as code owners June 5, 2024 20:55
The only change is storage for the storage hash after require_auth, which is expected because this test is using `require_auth` (which in turn now modifies the storage contents).
@dmkozh dmkozh enabled auto-merge June 5, 2024 23:46
@dmkozh dmkozh added this pull request to the merge queue Jun 6, 2024
Merged via the queue into stellar:main with commit 2373d14 Jun 6, 2024
17 checks passed
@dmkozh dmkozh deleted the nonce_sim branch June 6, 2024 00:24
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