Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion db/state/execctx/domain_shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,12 @@ func decodeAccountCodeHash(enc []byte) []byte {
return nil
}
var acc accounts.Account
if err := acc.DecodeForStorage(enc); err != nil {
// AccountsDomain values are SerialiseV3-encoded, so they must be decoded
// with DeserialiseV3. DecodeForStorage is the legacy MDBX bitmask format
// with an incompatible binary layout; applied to V3 bytes it silently
// misparses and leaves CodeHash empty, so codeHashForAddr returned nil for
// every contract and the CodeDomain ethHash bypass never fired.
if err := accounts.DeserialiseV3(&acc, enc); err != nil {
return nil
}
if acc.CodeHash.IsEmpty() {
Expand Down
Loading