ethclient/simulated: disable log indexing by default (#32594)

Disables the recently added log indexer from a simulated backend.
In most cases the log indexer is not required and unindexed search
should be fast enough.
Fixes https://github.com/ethereum/go-ethereum/issues/32552.
This commit is contained in:
hero5512 2026-05-01 14:27:57 -04:00 committed by GitHub
parent d270e211d1
commit 8656efcf5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,6 +86,8 @@ func NewBackend(alloc types.GenesisAlloc, options ...func(nodeConf *node.Config,
}
ethConf.SyncMode = ethconfig.FullSync
ethConf.TxPool.NoLocals = true
// Disable log indexing to force unindexed log search
ethConf.LogNoHistory = true
for _, option := range options {
option(&nodeConf, &ethConf)