trie: using EmptyCodeHash

This commit is contained in:
cuiweixie 2026-01-17 14:14:45 +08:00
parent 127d1f42bb
commit 98c2af00dc

View file

@ -792,7 +792,7 @@ func makeAccounts(size int) (addresses [][20]byte, accounts [][]byte) {
var (
nonce = uint64(random.Int63())
root = types.EmptyRootHash
code = crypto.Keccak256(nil)
code = types.EmptyCodeHash[:]
)
// The big.Rand function is not deterministic with regards to 64 vs 32 bit systems,
// and will consume different amount of data from the rand source.