diff --git a/shared/src/shared_builder.rs b/shared/src/shared_builder.rs index f78c3d1eaa..ca93ca1974 100644 --- a/shared/src/shared_builder.rs +++ b/shared/src/shared_builder.rs @@ -205,7 +205,7 @@ impl SharedBuilder { } let db = { - let db_dir = PathBuf::from("/tmp/tmp.db"); + let db_dir = std::env::temp_dir(); RocksDB::open_in(db_dir, COLUMNS) }; SharedBuilder { diff --git a/sync/Cargo.toml b/sync/Cargo.toml index 4191728d7c..2d349d3e24 100644 --- a/sync/Cargo.toml +++ b/sync/Cargo.toml @@ -24,7 +24,7 @@ ckb-chain-spec = { path = "../spec", version = "= 0.117.0-pre" } ckb-channel = { path = "../util/channel", version = "= 0.117.0-pre" } ckb-traits = { path = "../traits", version = "= 0.117.0-pre" } ckb-error = { path = "../error", version = "= 0.117.0-pre" } -ckb-tx-pool = { path = "../tx-pool", version = "= 0.117.0-pre", features = ["internal"] } +ckb-tx-pool = { path = "../tx-pool", version = "= 0.117.0-pre" } sentry = { version = "0.26.0", optional = true } ckb-constant = { path = "../util/constant", version = "= 0.117.0-pre" } ckb-async-runtime = { path = "../util/runtime", version = "= 0.117.0-pre" } @@ -52,6 +52,7 @@ faux = "^0.1" once_cell = "1.8.0" ckb-systemtime = { path = "../util/systemtime", version = "= 0.117.0-pre", features = ["enable_faketime"] } ckb-proposal-table = { path = "../util/proposal-table", version = "= 0.117.0-pre" } +ckb-tx-pool = { path = "../tx-pool", version = "= 0.117.0-pre", features = ["internal"] } [features] default = []