Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change bitcoin library to tapyrus #1

Merged
merged 2 commits into from
Jun 24, 2024
Merged

Change bitcoin library to tapyrus #1

merged 2 commits into from
Jun 24, 2024

Conversation

Yamaguchi
Copy link
Collaborator

@Yamaguchi Yamaguchi force-pushed the use_rust_tapyrus branch 2 times, most recently from fbfb96f to 5c258a3 Compare June 21, 2024 13:30
@@ -125,20 +102,20 @@ mod download {
};

let tarball_hash = sha256::Hash::hash(&tarball_bytes);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

リリースされているtarballのsha256値を検証する箇所はスキップしてます。

@@ -270,7 +287,9 @@ impl BitcoinD {

let work_dir_path = work_dir.path();
debug!("work_dir: {:?}", work_dir_path);
let cookie_file = work_dir_path.join(conf.network).join(".cookie");
let cookie_file = work_dir_path
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cookieファイルの生成場所を変更
<Tapyrusのデータディレクトリ>/regtest/.cookie => <Tapyrusのデータディレクトリ>/dev-(ネットワークID)/.cookie

"launching {:?} with args: {:?} {:?} AND custom args: {:?}",
exe.as_ref(),
default_args,
p2p_args,
conf_args
);

File::create(format!(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

genesisファイルを作成

assert_eq!(1, info.blocks);
}

#[test]
#[cfg(feature = "0_21_2")]
#[ignore]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getindexinfoはtapyrusでは未実装

#[test]
#[ignore]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getbalancesはtapyrusでは未実装

@Yamaguchi Yamaguchi mentioned this pull request Jun 23, 2024
8 tasks
@rantan rantan merged commit 9ec53ba into main Jun 24, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants