Skip to content

Hex patricia reader#13784

Closed
shotasilagadze wants to merge 18 commits into
mainfrom
hex-patricia-reader
Closed

Hex patricia reader#13784
shotasilagadze wants to merge 18 commits into
mainfrom
hex-patricia-reader

Conversation

@shotasilagadze

Copy link
Copy Markdown
Contributor

No description provided.

@awskii awskii mentioned this pull request Feb 20, 2025
15 tasks
Comment thread erigon-lib/commitment/commitment.go Outdated
Comment thread erigon-lib/commitment/commitment.go Outdated
Comment thread turbo/jsonrpc/eth_call.go Outdated
Comment thread erigon-lib/commitment/hex_patricia_hashed.go Outdated
Comment thread erigon-lib/commitment/commitment.go
Comment thread erigon-lib/state/domain_shared.go

@awskii awskii left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Its fine but SHOULD be on wait until v3 stable is out.

Comment thread erigon-lib/state/domain_shared.go Outdated
Comment thread erigon-lib/state/domain_shared.go Outdated
@awskii

awskii commented Apr 9, 2025

Copy link
Copy Markdown
Member

getWitnesses fails to generate proper response:

  • with enabled asserts, SharedDomain uses 2 different roTxns causing immutability assert to fail
  • with disabled asserts, root mismatches
computedRootHash = 4ead703b02f6617714862eb26ab50644360b11585683bc2482b82e729f58fae1
[WARN] [04-09|06:19:41.676] [rpc] served                             conn=xxxxxxxx:53182 method=eth_getWitness reqid=1 err="hash sort failed: loadIntoTable : root hash mismatch computedRootHash(4ead703b02f661
7714862eb26ab50644360b11585683bc2482b82e729f58fae1)!=expectedRootHash(42b2d020938b974f7eafb82603d42535b04bc9721b1f970042102caec576889a)"

cc @antonis19

@antonis19

Copy link
Copy Markdown
Contributor

I've encountered this before and most likely is a result of the account state reader in patricia trie implementation reading the wrong account state after unwind.

Please take a look at the account state integrity checks I've implemented in this PR: #13412

They will tell you if the accounts in the leaf nodes of the generated witness trie are correct or not.

@AskAlexSharov

Copy link
Copy Markdown
Collaborator

@awskii need to close or not?

@awskii

awskii commented Jul 25, 2025

Copy link
Copy Markdown
Member

seems still easier to have only one implementation of trie with ability to switch off trie update building

@awskii awskii closed this Jul 25, 2025
@awskii awskii deleted the hex-patricia-reader branch February 9, 2026 15:09
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.

5 participants