mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
fix(zktrie): fix NewZktrieDatabase (#638)
* feat(zktrie): fix `NewZktrieDatabase` * bump version
This commit is contained in:
parent
0f0cd99f7a
commit
3cf590b270
1 changed files with 3 additions and 1 deletions
|
|
@ -24,7 +24,9 @@ type ZktrieDatabase struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewZktrieDatabase(diskdb ethdb.KeyValueStore) *ZktrieDatabase {
|
func NewZktrieDatabase(diskdb ethdb.KeyValueStore) *ZktrieDatabase {
|
||||||
return &ZktrieDatabase{db: NewDatabase(diskdb), prefix: []byte{}}
|
db := NewDatabase(diskdb)
|
||||||
|
db.Zktrie = true
|
||||||
|
return &ZktrieDatabase{db: db, prefix: []byte{}}
|
||||||
}
|
}
|
||||||
|
|
||||||
// adhoc wrapper...
|
// adhoc wrapper...
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue