Switch a few directories (#644 #646)

This commit is contained in:
Christopher Goes 2018-03-29 12:10:13 +02:00
parent 44de18e8da
commit 0f9bd93bb1
No known key found for this signature in database
GPG Key ID: E828D98232D328D3
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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