-
Notifications
You must be signed in to change notification settings - Fork 412
replace use of bitcoin::utils::misc::hex_bytes with hex::decode #95
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
replace use of bitcoin::utils::misc::hex_bytes with hex::decode #95
Conversation
Thanks! Also in fuzz/fuzz_targets. If you're gonna change every line anyway why not just write out "hex::decode"? Otherwise just import it as hex_bytes so you dont have to change every line. |
ah, yeah, forgot about fuzz directory. will do, hold on. hmm - I guess, I was trying to match the existing code style of importing on top. I can change to Slight preference to avoid |
in |
In fuzz there's a bunch of extend_vec_from_hex's that could get replaced. import hex; and hex::decode seems good to me, or ::hex::decode, though I find that less readable. |
ah, got it (on both points).
…On Fri, Jul 27, 2018 at 5:49 PM Matt Corallo ***@***.***> wrote:
In fuzz there's a bunch of extend_vec_from_hex's that could get replaced.
import hex; and hex::decode seems good to me, or ::hex::decode, though I
find that less readable.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#95 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AApSZNH3DeGNimdP8Xt-S0UIixmBCrWAks5uK7UpgaJpZM4Vk0QX>
.
|
fresh code is in. Lets hope it passes the travis/fuzz testing. |
lightning = { path = "..", features = ["fuzztarget"] } | ||
bitcoin = { version = "0.13", features = ["fuzztarget"] } | ||
secp256k1 = { version = "0.9", features=["fuzztarget"] } | ||
rust-crypto = "0.2" | ||
hex = "0.3.2" |
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 think usually its best to just specify 0.3, as minor bumps we'd want to take as bugfixes, no?
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.
fair point!
…artupargs Prompt user to provide at least 2 arguments rather than 3
as requested in #84 discussion
#84 (comment)