![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#include <blockencodings.h>
Public Member Functions | |
| CBlockHeaderAndShortTxIDs ()=default | |
| Dummy for deserialization. | |
| CBlockHeaderAndShortTxIDs (const CBlock &block, uint64_t nonce) | |
| uint64_t | GetShortID (const Wtxid &wtxid) const |
| size_t | BlockTxCount () const |
| SERIALIZE_METHODS (CBlockHeaderAndShortTxIDs, obj) | |
Public Attributes | |
| CBlockHeader | header |
Static Public Attributes | |
| static constexpr int | SHORTTXIDS_LENGTH = 6 |
Protected Attributes | |
| std::vector< uint64_t > | shorttxids |
| std::vector< PrefilledTransaction > | prefilledtxn |
Private Member Functions | |
| void | FillShortTxIDSelector () const |
Private Attributes | |
| std::optional< PresaltedSipHasher > | m_hasher |
| uint64_t | nonce |
Friends | |
| class | PartiallyDownloadedBlock |
Definition at line 90 of file blockencodings.h.
|
default |
Dummy for deserialization.
| CBlockHeaderAndShortTxIDs::CBlockHeaderAndShortTxIDs | ( | const CBlock & | block, |
| uint64_t | nonce ) |
| [in] | nonce | This should be randomly generated, and is used for the siphash secret key |
Definition at line 20 of file blockencodings.cpp.
|
inline |
|
private |
Definition at line 35 of file blockencodings.cpp.
| uint64_t CBlockHeaderAndShortTxIDs::GetShortID | ( | const Wtxid & | wtxid | ) | const |
Definition at line 46 of file blockencodings.cpp.
|
inline |
|
friend |
Definition at line 96 of file blockencodings.h.
| CBlockHeader CBlockHeaderAndShortTxIDs::header |
Definition at line 105 of file blockencodings.h.
|
mutableprivate |
Definition at line 91 of file blockencodings.h.
|
private |
Definition at line 92 of file blockencodings.h.
|
protected |
Definition at line 100 of file blockencodings.h.
|
protected |
Definition at line 99 of file blockencodings.h.
|
staticconstexpr |
Definition at line 103 of file blockencodings.h.