-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
0014366
to
a5a7bbe
Compare
a5a7bbe
to
9bdba76
Compare
@@ -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\\\"}\" }"); |
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
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にしました。
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
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フィールドが無い)ためこのテストは失敗します。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
496b922
修正しました。
No description provided.