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

Sync to btcd commit '5a1e77bd2dd6f5302a82d3d27b4e3a60526918b1' #359

Merged
merged 2 commits into from
Sep 22, 2016

Conversation

cjepson
Copy link
Contributor

@cjepson cjepson commented Sep 22, 2016

Merge in 5a1e77b.

davecgh and others added 2 commits April 13, 2016 21:43
The current code is needlessly checking the number of bytes needed to
serialize the unspentness bitmap in the utxo against a maximum value
that could never be returned because the function takes a uint32 output
index which is treated as a bit offset, and converts it bytes, which
will necessarily be less than a max uint32.

This check also causes a compile error on arm where native integers are
32 bits.

This simply removes the unneeded check.
@cjepson cjepson changed the title Sync to btc commit '5a1e77bd2dd6f5302a82d3d27b4e3a60526918b1' Sync to btcd commit '5a1e77bd2dd6f5302a82d3d27b4e3a60526918b1' Sep 22, 2016
@alexlyp
Copy link
Member

alexlyp commented Sep 22, 2016

OK

Copy link
Member

@davecgh davecgh left a comment

Choose a reason for hiding this comment

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

OK

@cjepson cjepson merged commit fe4bf14 into decred:master Sep 22, 2016
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.

None yet

3 participants