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 3 commits into from
Jul 1, 2024
Merged

Conversation

Yamaguchi
Copy link
Collaborator

No description provided.

@Yamaguchi Yamaguchi force-pushed the change_tapyrus_to_bitcoin branch from 0014366 to a5a7bbe Compare June 25, 2024 05:31
@Yamaguchi Yamaguchi force-pushed the change_tapyrus_to_bitcoin branch from a5a7bbe to 9bdba76 Compare June 25, 2024 05:38
@@ -659,9 +663,9 @@ mod test {
let async_res = async_client.broadcast(tx.as_ref().unwrap()).await;
let blocking_res = blocking_client.broadcast(tx.as_ref().unwrap());
assert!(async_res.is_err());
assert_eq!(async_res.unwrap_err().to_string(),"HttpResponse { status: 400, message: \"sendrawtransaction RPC error: {\\\"code\\\":-27,\\\"message\\\":\\\"Transaction already in block chain\\\"}\" }");
assert_eq!(async_res.unwrap_err().to_string(),"HttpResponse { status: 400, message: \"sendrawtransaction RPC error: {\\\"code\\\":-27,\\\"message\\\":\\\"transaction already in block chain\\\"}\" }");
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

現状、TapyrusCoreが返すメッセージが小文字で始まるためそれに合わせてます。

src/lib.rs Outdated
@@ -505,19 +505,20 @@ mod test {

#[cfg(all(feature = "blocking", feature = "async"))]
#[tokio::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.

TapyrusCoreが返すRPC gettransaction のレスポンスにblockheightが含まれないためこのテストは失敗します。いったん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.

496b922
修正しました。

src/lib.rs Outdated
@@ -903,9 +907,10 @@ mod test {

#[cfg(all(feature = "blocking", feature = "async"))]
#[tokio::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.

esploraのGET /blocks
のレスポンスのフォーマットがesplora-tapyrusとesplora(bitcoin)で異なる(timestampフィールドが無い)ためこのテストは失敗します。

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

496b922
修正しました。

@rantan rantan merged commit 64690e5 into main Jul 1, 2024
2 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