Bitcoin Core 28.99.0
P2P Digital Currency
|
#include <blockencodings.h>
Public Types | |
using | CheckBlockFn = std::function< bool(const CBlock &, BlockValidationState &, const Consensus::Params &, bool, bool)> |
Public Member Functions | |
PartiallyDownloadedBlock (CTxMemPool *poolIn) | |
ReadStatus | InitData (const CBlockHeaderAndShortTxIDs &cmpctblock, const std::vector< CTransactionRef > &extra_txn) |
bool | IsTxAvailable (size_t index) const |
ReadStatus | FillBlock (CBlock &block, const std::vector< CTransactionRef > &vtx_missing) |
Public Attributes | |
CBlockHeader | header |
CheckBlockFn | m_check_block_mock {nullptr} |
Protected Attributes | |
std::vector< CTransactionRef > | txn_available |
size_t | prefilled_count = 0 |
size_t | mempool_count = 0 |
size_t | extra_count = 0 |
const CTxMemPool * | pool |
Definition at line 135 of file blockencodings.h.
using PartiallyDownloadedBlock::CheckBlockFn = std::function<bool(const CBlock&, BlockValidationState&, const Consensus::Params&, bool, bool)> |
Definition at line 144 of file blockencodings.h.
|
inlineexplicit |
Definition at line 147 of file blockencodings.h.
ReadStatus PartiallyDownloadedBlock::FillBlock | ( | CBlock & | block, |
const std::vector< CTransactionRef > & | vtx_missing | ||
) |
Definition at line 183 of file blockencodings.cpp.
ReadStatus PartiallyDownloadedBlock::InitData | ( | const CBlockHeaderAndShortTxIDs & | cmpctblock, |
const std::vector< CTransactionRef > & | extra_txn | ||
) |
Definition at line 50 of file blockencodings.cpp.
bool PartiallyDownloadedBlock::IsTxAvailable | ( | size_t | index | ) | const |
Definition at line 175 of file blockencodings.cpp.
|
protected |
Definition at line 138 of file blockencodings.h.
CBlockHeader PartiallyDownloadedBlock::header |
Definition at line 141 of file blockencodings.h.
CheckBlockFn PartiallyDownloadedBlock::m_check_block_mock {nullptr} |
Definition at line 145 of file blockencodings.h.
|
protected |
Definition at line 138 of file blockencodings.h.
|
protected |
Definition at line 139 of file blockencodings.h.
|
protected |
Definition at line 138 of file blockencodings.h.
|
protected |
Definition at line 137 of file blockencodings.h.