-
Notifications
You must be signed in to change notification settings - Fork 668
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
Hash new types as specified in #284 #349
Conversation
@apoelstra The PR is ready for a review; the build with rust 1.22 fails since rust compiler fails to recognise that FromHex use is actually used by the macro, and allow_unused does not work for this version (but works fine for the rest). I can't do anything with this false error... |
Maybe make |
I think we should just put Alternately, we could remove the |
125bbd9
to
a48bc65
Compare
Everything works for now with |
Codecov Report
@@ Coverage Diff @@
## master #349 +/- ##
=========================================
- Coverage 84.78% 84.7% -0.08%
=========================================
Files 39 40 +1
Lines 7221 7680 +459
=========================================
+ Hits 6122 6505 +383
- Misses 1099 1175 +76
Continue to review full report at Codecov.
|
Could you please clean up the history? Squash down fixup commits, remove merge commits, etc? |
7e652b2
to
d389aa5
Compare
I have tried to do my best in structuring my changes into logical structure of sequential commits plus the last two for rebasing master and resolving conflicts with the master |
37ec3e6
to
2a3b089
Compare
Can you rebase instead of merging? |
I can, but when I did it it said about conflicts (even after rebasing), so I had to merge. Now I see that there are new conflicts... |
Right, if there are conflicts you need to fix the conflicts |
If you prefer I don't mind helping with rebasing/fixing conflicts. |
Sorry for replying late, being out for our first client-side validation event we were doing in Milan. @elichai, thank you for your proposal, I will address @stevenroose review today with a new commit and will allow edits for maintainers - I am completelly missed with all this rebase vs merge + conflicts... |
2a3b089
to
0801452
Compare
b1ae38b
to
80122ed
Compare
@apoelstra the command succeeds with all of the commits; so there is no change |
:( on the first commit,
Then on
|
Very strange, what I get is:
and after quite a lot of time I get
What am I doing wrong? PS. Sorry, figured that out myself, I have missed |
63d0194
to
9d957f5
Compare
@apoelstra done. It is needed to reset Travis cache and re-run tests though. |
Great, thanks! I'm unlikely to get it done today on account of Christmas :) |
Sure, I am too celebrating the Winter Solstice and Solar Eclipse :) |
My rebase command still fails on the first three commits (at least) :( One persistent error is
on 1.22. |
…ughout the code Embedding Txid's in the doc exaples
Fixing issue with external dependency and hash_newtype macro implementation Reverting back to the bitcoin_hashes crate after new version release
Unit test for wtxid and SegWit transactions
@apoelstra very strange, it could be that I had pushed a wrong version. Have re-done rebasing and double-checked, it seems to be fine now. PS. Travis still fails due to its internal problem, needs to reset cache. |
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.
ACK. Thanks for the many revisions.
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.
LGTM.
only logic change is the bitcoin_merkle_root
, which looks ok
Progress report:
hash_newtype
macro to work correctly bitcoin_hashes#63 (it depends on the other PR here: Adding docs to macros and fixeing rust lint warnings bitcoin_hashes#64)