| 19 | } |
| 20 | |
| 21 | std::vector<bool> BytesToBits(const std::vector<unsigned char>& bytes) |
| 22 | { |
| 23 | std::vector<bool> ret(bytes.size() * 8); |
| 24 | for (unsigned int p = 0; p < ret.size(); p++) { |
| 25 | ret[p] = (bytes[p / 8] & (1 << (p % 8))) != 0; |
| 26 | } |
| 27 | return ret; |
| 28 | } |
| 29 | |
| 30 | CMerkleBlock::CMerkleBlock(const CBlock& block, CBloomFilter* filter, const std::set<uint256>* txids) |
| 31 | { |