parent
44de18e8da
commit
0f9bd93bb1
|
@ -32,7 +32,7 @@ type KeyOutput struct {
|
|||
// GetKeyBase initializes a keybase based on the configuration
|
||||
func GetKeyBase() (keys.Keybase, error) {
|
||||
if keybase == nil {
|
||||
rootDir := filepath.Join(viper.GetString(cli.HomeFlag), ".basecoind")
|
||||
rootDir := filepath.Join(viper.GetString(cli.HomeFlag), ".tlc")
|
||||
db, err := dbm.NewGoLevelDB(KeyDBName, filepath.Join(rootDir, "data"))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
@ -295,7 +295,7 @@ func TestTxs(t *testing.T) {
|
|||
// strt TM and the LCD in process, listening on their respective sockets
|
||||
func startTMAndLCD() (*nm.Node, net.Listener, error) {
|
||||
|
||||
viper.Set(cli.HomeFlag, os.ExpandEnv("/tmp/$HOME"))
|
||||
viper.Set(cli.HomeFlag, os.TempDir())
|
||||
kb, err := keys.GetKeyBase() // dbm.NewMemDB()) // :(
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
|
|
Loading…
Reference in New Issue