mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
core: disable tx index in tests
This commit is contained in:
parent
6fa66e40a3
commit
ad9d7e059a
3 changed files with 7 additions and 2 deletions
|
|
@ -1785,7 +1785,8 @@ func testRepairWithScheme(t *testing.T, tt *rewindTest, snapshots bool, scheme s
|
|||
TrieCleanLimit: 256,
|
||||
TrieDirtyLimit: 256,
|
||||
TrieTimeLimit: 5 * time.Minute,
|
||||
SnapshotLimit: 0, // Disable snapshot by default
|
||||
SnapshotLimit: 0, // disable snapshot by default
|
||||
TxLookupLimit: -1, // disable tx indexing
|
||||
StateScheme: scheme,
|
||||
}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1989,7 +1989,8 @@ func testSetHeadWithScheme(t *testing.T, tt *rewindTest, snapshots bool, scheme
|
|||
TrieCleanLimit: 256,
|
||||
TrieDirtyLimit: 256,
|
||||
TrieTimeLimit: 5 * time.Minute,
|
||||
SnapshotLimit: 0, // Disable snapshot
|
||||
SnapshotLimit: 0, // disable snapshot
|
||||
TxLookupLimit: -1, // disable tx indexing
|
||||
StateScheme: scheme,
|
||||
}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -316,6 +316,7 @@ func (snaptest *gappedSnapshotTest) test(t *testing.T) {
|
|||
TrieTimeLimit: 5 * time.Minute,
|
||||
SnapshotLimit: 0,
|
||||
StateScheme: snaptest.scheme,
|
||||
TxLookupLimit: -1,
|
||||
}
|
||||
newchain, err := NewBlockChain(snaptest.db, snaptest.gspec, snaptest.engine, options)
|
||||
if err != nil {
|
||||
|
|
@ -389,6 +390,7 @@ func (snaptest *wipeCrashSnapshotTest) test(t *testing.T) {
|
|||
TrieTimeLimit: 5 * time.Minute,
|
||||
SnapshotLimit: 0,
|
||||
StateScheme: snaptest.scheme,
|
||||
TxLookupLimit: -1,
|
||||
}
|
||||
newchain, err := NewBlockChain(snaptest.db, snaptest.gspec, snaptest.engine, config)
|
||||
if err != nil {
|
||||
|
|
@ -406,6 +408,7 @@ func (snaptest *wipeCrashSnapshotTest) test(t *testing.T) {
|
|||
SnapshotLimit: 256,
|
||||
SnapshotWait: false, // Don't wait rebuild
|
||||
StateScheme: snaptest.scheme,
|
||||
TxLookupLimit: -1,
|
||||
}
|
||||
tmp, err := NewBlockChain(snaptest.db, snaptest.gspec, snaptest.engine, config)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue