Skip to content

Commit 5ca3bdb

Browse files
committed
chore!(triedb): remove config argument for DBConstructor
- unused by consumers
1 parent 7be6bee commit 5ca3bdb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

triedb/database.libevm.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type ReaderProvider interface {
4242
}
4343

4444
// A DBConstructor constructs alternative backend-database implementations.
45-
type DBConstructor func(ethdb.Database, *Config) DBOverride
45+
type DBConstructor func(ethdb.Database) DBOverride
4646

4747
// A DBOverride is an arbitrary implementation of a [Database] backend. It MUST
4848
// be either a [HashDB] or a [PathDB].
@@ -59,7 +59,7 @@ func (db *Database) overrideBackend(diskdb ethdb.Database, config *Config) bool
5959
log.Crit("Database override provided when 'hash' or 'path' mode are configured")
6060
}
6161

62-
db.backend = config.DBOverride(diskdb, config)
62+
db.backend = config.DBOverride(diskdb)
6363
switch db.backend.(type) {
6464
case HashDB:
6565
case PathDB:

triedb/database.libevm_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828

2929
func TestDBOverride(t *testing.T) {
3030
config := &Config{
31-
DBOverride: func(d ethdb.Database, c *Config) DBOverride {
31+
DBOverride: func(d ethdb.Database) DBOverride {
3232
return override{}
3333
},
3434
}

0 commit comments

Comments
 (0)