Changeset View
Changeset View
Standalone View
Standalone View
src/merkleblock.cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "merkleblock.h" | #include <merkleblock.h> | ||||
#include "consensus/consensus.h" | #include <consensus/consensus.h> | ||||
#include "hash.h" | #include <hash.h> | ||||
#include "utilstrencodings.h" | #include <utilstrencodings.h> | ||||
CMerkleBlock::CMerkleBlock(const CBlock &block, CBloomFilter &filter) { | CMerkleBlock::CMerkleBlock(const CBlock &block, CBloomFilter &filter) { | ||||
header = block.GetBlockHeader(); | header = block.GetBlockHeader(); | ||||
std::vector<bool> vMatch; | std::vector<bool> vMatch; | ||||
std::vector<uint256> vHashes; | std::vector<uint256> vHashes; | ||||
vMatch.reserve(block.vtx.size()); | vMatch.reserve(block.vtx.size()); | ||||
▲ Show 20 Lines • Show All 200 Lines • Show Last 20 Lines |