diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-15 12:16:18 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:23:39 +0800 |
commit | 2e1556d551420e5f52d6e4e157b46963277eaccd (patch) | |
tree | 03875aaa88fb06ac64738c0c4d38b9a703a0ca90 /dex | |
parent | 09496d7fa81e7ab90131a648da0a870b7e0ac7bf (diff) | |
download | go-tangerine-2e1556d551420e5f52d6e4e157b46963277eaccd.tar.gz go-tangerine-2e1556d551420e5f52d6e4e157b46963277eaccd.tar.zst go-tangerine-2e1556d551420e5f52d6e4e157b46963277eaccd.zip |
dex: move dexcon blockdb into datadir
Diffstat (limited to 'dex')
-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) } |