aboutsummaryrefslogblamecommitdiffstats
path: root/ethdb/database_test.go
blob: 3cead8bcd258a8109a299c9b7a24e959eacb3459 (plain) (tree)
1
2
3
4
5
6
7
8
9


             



                                                
 
 



                                                       

         
                                     
 
                 
 
package ethdb

import (
    "os"
    "path"

    "github.com/ethereum/go-ethereum/common"
)

func newDb() *LDBDatabase {
    file := path.Join("/", "tmp", "ldbtesttmpfile")
    if common.FileExist(file) {
        os.RemoveAll(file)
    }

    db, _ := NewLDBDatabase(file)

    return db
}