mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 04:01:55 +00:00
NewIAVLTree takes waldir
This commit is contained in:
@@ -36,10 +36,7 @@ func NewPersistentDummyApplication(dbDir string) *PersistentDummyApplication {
|
||||
db := dbm.NewDB("dummy", "leveldb", dbDir)
|
||||
lastBlock := LoadLastBlock(db)
|
||||
|
||||
stateTree := merkle.NewIAVLTree(
|
||||
0,
|
||||
db,
|
||||
)
|
||||
stateTree := merkle.NewIAVLTree(0, ".", db)
|
||||
stateTree.Load(lastBlock.AppHash)
|
||||
|
||||
log.Notice("Loaded state", "block", lastBlock.BlockHeight, "root", stateTree.Hash())
|
||||
|
Reference in New Issue
Block a user