Skip to content

Commit

Permalink
core/state: write code to rawdb under codehash key when verkle is ena…
Browse files Browse the repository at this point in the history
…bled (#76)
  • Loading branch information
jwasinger authored Feb 9, 2022
1 parent cd491b1 commit 2554974
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -1028,9 +1028,8 @@ func (s *StateDB) Commit(deleteEmptyObjects bool) (common.Hash, error) {
} else {
s.setError(err)
}
} else {
rawdb.WriteCode(codeWriter, common.BytesToHash(obj.CodeHash()), obj.code)
}
rawdb.WriteCode(codeWriter, common.BytesToHash(obj.CodeHash()), obj.code)
obj.dirtyCode = false
}
}
Expand Down

0 comments on commit 2554974

Please sign in to comment.