diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-15 12:16:18 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | 95379029f2e3eb0ffd2c1a6c151100062cb5d5cc (patch) | |
tree | e42306b1218a15abdbb15b9463a05c184de083b5 /dex | |
parent | 5cda539cb7e80adada4c97f4e09d6524e2a002a0 (diff) | |
download | dexon-95379029f2e3eb0ffd2c1a6c151100062cb5d5cc.tar dexon-95379029f2e3eb0ffd2c1a6c151100062cb5d5cc.tar.gz dexon-95379029f2e3eb0ffd2c1a6c151100062cb5d5cc.tar.bz2 dexon-95379029f2e3eb0ffd2c1a6c151100062cb5d5cc.tar.lz dexon-95379029f2e3eb0ffd2c1a6c151100062cb5d5cc.tar.xz dexon-95379029f2e3eb0ffd2c1a6c151100062cb5d5cc.tar.zst dexon-95379029f2e3eb0ffd2c1a6c151100062cb5d5cc.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 f205362e0..bbe337459 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) } |