Skip to content

Conversation

@mirgee
Copy link
Contributor

@mirgee mirgee commented Oct 24, 2025

Currently, BlockAccessListStateRootHashCalculator#accumulateAccessListAndComputeRoot creates accounts in the accumulator which have been only read. If an account doesn't exist at the beginning at the block processing and is only read (i.e. remains unchanged), it is not part of the state and should not be considered for the state root computation per EIP-161.

@mirgee mirgee force-pushed the fix-bal-state-root-calculator branch from ace6f65 to 98bfd10 Compare October 24, 2025 10:03
}
}

accumulator.clearAccountsThatAreEmpty();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is probably not necessary but I think it's safer to keep it.

Copy link
Contributor

@matkt matkt left a comment

Choose a reason for hiding this comment

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

LGTM

@matkt matkt merged commit 3f35872 into hyperledger:main Oct 27, 2025
50 of 65 checks passed
@mirgee mirgee deleted the fix-bal-state-root-calculator branch October 27, 2025 11:54
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