mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-05 19:40:44 +00:00
Fix tests; Update go-merkle API
This commit is contained in:
@@ -14,7 +14,7 @@ type DummyApplication struct {
|
||||
}
|
||||
|
||||
func NewDummyApplication() *DummyApplication {
|
||||
state := merkle.NewIAVLTree(0, ".", nil)
|
||||
state := merkle.NewIAVLTree(0, nil)
|
||||
return &DummyApplication{state: state}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,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