mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-16 03:41:35 +00:00
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:
parent
d270e211d1
commit
8656efcf5b
1 changed files with 2 additions and 0 deletions
|
|
@ -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, ðConf)
|
||||
|
|
|
|||
Loading…
Reference in a new issue