Branch: refs/heads/master
Home: https://github.com/btcsuite/btcd
Commit: 5a1e77bd2dd6f5302a82d3d27b4e3a60526918b1
https://github.com/btcsuite/btcd/commit/5a1e77bd2dd6f5302a82d3d27b4e3a60526918b1
Author: Dave Collins <[email protected]>
Date: 2016-04-13 (Wed, 13 Apr 2016)
Changed paths:
M blockchain/chainio.go
Log Message:
-----------
blockchain: Remove unneeded unspentness size check. (#665)
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.