mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-09 14:34:27 +00:00
Complete implementation of all NomtTrie methods: Read operations (from stem flat state): - GetAccount: reads basic data (slot 0) and code hash (slot 1) - GetStorage: reads packed 32-byte value by stem+suffix Write operations (accumulate pending stemUpdates): - UpdateAccount: packs basic data + code hash at account stem - UpdateStorage: right-aligns value to 32 bytes - DeleteStorage: writes 32 zero bytes (matching bintrie) - DeleteAccount: no-op (matching bintrie) - UpdateContractCode: ChunkifyCode + per-chunk stem updates Flush (Hash/Commit): - groupAndHashStems merges updates with flat state, writes back - nomtDB.Update pushes stem hashes into the page tree - Returns new root hash 15 new integration tests, all passing with -race. Full suite: 38 nomttrie + 94 core + 34 merkle + 9 db + 31 bitbox = all green. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| key_encoding.go | ||
| key_encoding_test.go | ||
| stem.go | ||
| stem_test.go | ||
| trie.go | ||
| trie_test.go | ||
| value_encoding.go | ||
| value_encoding_test.go | ||