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

Feature/use rust tapyrus #118

Merged
merged 5 commits into from
Jun 10, 2020
Merged

Conversation

Yamaguchi
Copy link
Contributor

@Yamaguchi Yamaguchi commented Apr 27, 2020

This PR will solve #28

@Yamaguchi Yamaguchi force-pushed the feature/use_rust_tapyrus branch from 69ca88f to 8f0e733 Compare June 9, 2020 07:11
@Yamaguchi Yamaguchi force-pushed the feature/use_rust_tapyrus branch from 8f0e733 to 86ea9d7 Compare June 9, 2020 07:14
@Yamaguchi Yamaguchi marked this pull request as ready for review June 9, 2020 07:17
@Yamaguchi Yamaguchi requested review from rantan and azuchi and removed request for rantan June 9, 2020 08:54
Copy link
Contributor

@rantan rantan left a comment

Choose a reason for hiding this comment

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

utACK

I think almost ok, but I leave a small comment.

Comment on lines 232 to 237
fn test_deserialize() {
let hex = "010000000000000000000000000000000000000000000000000000000000000000000000c0d6961ad2819f74eb6d085f04f9cceb0a9a6d5c153fd3c39fc47c3ca0bb548f85fbd09a5f7d8ac4c9552e52931ef6672984f64e52ad6d05d1cdb18907da8527db317c5e012103addb2555f37abf8f28f11f498bec7bd1460e7243c1813847c49a7ae326a97d1c00010100000001000000000000000000000000000000000000000000000000000000000000000000000000222103addb2555f37abf8f28f11f498bec7bd1460e7243c1813847c49a7ae326a97d1cffffffff0100f2052a010000001976a914a15f16ea2ba840d178e4c19781abca5f4fb1b4c288ac00000000";
let vec = hex::decode(hex).unwrap();
let block = deserialize::<Block>(&vec);
assert!(block.is_ok());
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this test?

Block deserialization should be tested in rust-tapyrus crate.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed 00f9404

@rantan rantan merged commit 32d230b into chaintope:master Jun 10, 2020
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