-
Notifications
You must be signed in to change notification settings - Fork 49
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
remove byteorder dependency #807
base: develop
Are you sure you want to change the base?
remove byteorder dependency #807
Conversation
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.
I'm fine with removing a dependency but why would byteorder cause issues in no_std? ergo-lib doesn't depend on it and ergo-nipoopow/chain-generation don't support no_std anyway
Pull Request Test Coverage Report for Build 12853612527Details
💛 - Coveralls |
a4c408f
to
022e51e
Compare
ergo-lib was depending on |
022e51e
to
6145182
Compare
6145182
to
f5447d2
Compare
let mut height_bytes = Vec::with_capacity(4); | ||
#[allow(clippy::unwrap_used)] | ||
height_bytes.write_u32::<BigEndian>(header.height).unwrap(); | ||
let height_bytes = header.height.to_be_bytes().to_vec(); |
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.
Could you remove to_vec here as well?
closes #806