tests: fix flaw in block-test runner to enable preimages

This commit is contained in:
Martin Holst Swende 2023-11-28 12:59:15 +01:00
parent eb9e6d755e
commit 41d5b6c79d
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0

View file

@ -143,7 +143,7 @@ func (t *BlockTest) Run(snapshotter bool, scheme string, tracer vm.EVMLogger, po
// Wrap the original engine within the beacon-engine // Wrap the original engine within the beacon-engine
engine := beacon.New(ethash.NewFaker()) engine := beacon.New(ethash.NewFaker())
cache := &core.CacheConfig{TrieCleanLimit: 0, StateScheme: scheme} cache := &core.CacheConfig{TrieCleanLimit: 0, StateScheme: scheme, Preimages: true}
if snapshotter { if snapshotter {
cache.SnapshotLimit = 1 cache.SnapshotLimit = 1
cache.SnapshotWait = true cache.SnapshotWait = true