Changeset View
Changeset View
Standalone View
Standalone View
src/blockencodings.cpp
// Copyright (c) 2016 The Bitcoin Core developers | // Copyright (c) 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 "blockencodings.h" | #include <blockencodings.h> | ||||
#include "chainparams.h" | |||||
#include "config.h" | #include <chainparams.h> | ||||
#include "consensus/consensus.h" | #include <config.h> | ||||
#include "consensus/validation.h" | #include <consensus/consensus.h> | ||||
#include "hash.h" | #include <consensus/validation.h> | ||||
#include "random.h" | #include <hash.h> | ||||
#include "streams.h" | #include <random.h> | ||||
#include "txmempool.h" | #include <streams.h> | ||||
#include "util.h" | #include <txmempool.h> | ||||
#include "validation.h" | #include <util.h> | ||||
#include <validation.h> | |||||
#include <unordered_map> | #include <unordered_map> | ||||
CBlockHeaderAndShortTxIDs::CBlockHeaderAndShortTxIDs(const CBlock &block) | CBlockHeaderAndShortTxIDs::CBlockHeaderAndShortTxIDs(const CBlock &block) | ||||
: nonce(GetRand(std::numeric_limits<uint64_t>::max())), | : nonce(GetRand(std::numeric_limits<uint64_t>::max())), | ||||
shorttxids(block.vtx.size() - 1), prefilledtxn(1), header(block) { | shorttxids(block.vtx.size() - 1), prefilledtxn(1), header(block) { | ||||
FillShortTxIDSelector(); | FillShortTxIDSelector(); | ||||
// TODO: Use our mempool prior to block acceptance to predictively fill more | // TODO: Use our mempool prior to block acceptance to predictively fill more | ||||
▲ Show 20 Lines • Show All 246 Lines • Show Last 20 Lines |