diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-15 12:16:18 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:49 +0800 |
commit | 031fe42b08bb576b250a81e1e3885f15910551c5 (patch) | |
tree | ed81a15ba59dc8c9ac089fa322c8e6a4b357fc16 /dex/backend.go | |
parent | 7ff1d6f1289d97ff0c8e66a71d06ac92fde09542 (diff) | |
download | dexon-031fe42b08bb576b250a81e1e3885f15910551c5.tar.gz dexon-031fe42b08bb576b250a81e1e3885f15910551c5.tar.zst dexon-031fe42b08bb576b250a81e1e3885f15910551c5.zip |
dex: move dexcon blockdb into datadir
Diffstat (limited to 'dex/backend.go')
-rw-r--r-- | dex/backend.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dex/backend.go b/dex/backend.go index 3d59d9f2c..0e475dec0 100644 --- a/dex/backend.go +++ b/dex/backend.go @@ -19,6 +19,7 @@ package dex import ( "fmt" + "path/filepath" "time" dexCore "github.com/dexon-foundation/dexon-consensus-core/core" @@ -82,7 +83,8 @@ type Dexon struct { func New(ctx *node.ServiceContext, config *Config) (*Dexon, error) { // Consensus. - db, err := blockdb.NewLevelDBBackedBlockDB("main.blockdb") + blockDBPath := filepath.Join(ctx.Config.DataDir, "dexcon", "blockdb") + db, err := blockdb.NewLevelDBBackedBlockDB(blockDBPath) if err != nil { panic(err) } |