Skip to content

TX_WARM fix for addresses which don't exist in the state #1655

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

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

OlivierBBB
Copy link
Collaborator

No description provided.

@OlivierBBB OlivierBBB self-assigned this Dec 13, 2024
@@ -69,14 +69,17 @@ public TxPreWarmingMacroSection(WorldView world, Hub hub) {
"Deployment status during TX_INIT phase of any accountAddress should always be false");

final boolean isAccountWarm = seenAddresses.contains(address);
seenAddresses.add(address);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

RAS: just moved it up.

? AccountSnapshot.fromAddress(
address, isAccountWarm, deploymentNumber, false)
: AccountSnapshot.fromAccount(
world.get(address), isAccountWarm, deploymentNumber, false);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Dealing with the case where world.get(address) == null.

@OlivierBBB OlivierBBB merged commit b8a19f2 into arith-dev Dec 13, 2024
7 checks passed
@OlivierBBB OlivierBBB deleted the PREWARMING-of-nonexistent-accounts-fix branch December 13, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants