Skip to content
Discussion options

You must be logged in to vote

Answer from @ajsutton:

Formally the Account is nonce, balance, storageRoot and codeHash and I think it’s encoded just as an RLP list of those values. I think https://github.com/hyperledger/besu/blob/110052c9f3990dce7e3035579a692ab9bb75daec/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/worldstate/StateTrieAccountValue.java#L99 is the relevant code in besu.

Given the way the executable specs are storing the storage trie by Account rather than it’s root hash then yeah I think you’re right that they can not actually store the storage root in the account but generate it when needed from the stored trie which is looked up by Address.

There seems to be some confusion between the stor…

Replies: 1 comment 2 replies

Comment options

siladu
Jul 16, 2022
Maintainer Author

You must be logged in to vote
2 replies
@siladu
Comment options

siladu Jul 16, 2022
Maintainer Author

@siladu
Comment options

siladu Jul 16, 2022
Maintainer Author

Answer selected by siladu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
1 participant