Skip to content

Commit caa7801

Browse files
committed
remove datadir from connect params which is equivalent to workdir()
1 parent 64e5824 commit caa7801

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ impl DataDir {
6363
#[derive(Debug, Clone)]
6464
/// Contains all the information to connect to this node
6565
pub struct ConnectParams {
66-
/// Path to the node datadir
67-
pub datadir: PathBuf,
6866
/// Path to the node cookie file, useful for other client to connect to the node
6967
pub cookie_file: PathBuf,
7068
/// Url of the rpc of the node, useful for other client to connect to the node
@@ -331,7 +329,6 @@ impl BitcoinD {
331329
client,
332330
work_dir,
333331
params: ConnectParams {
334-
datadir: work_dir_path,
335332
cookie_file,
336333
rpc_socket,
337334
p2p_socket,

0 commit comments

Comments
 (0)