Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
TestHeaderAndShortIDs Class Reference
Collaboration diagram for TestHeaderAndShortIDs:
[legend]

Public Member Functions

 TestHeaderAndShortIDs (const CBlockHeaderAndShortTxIDs &orig)
 
 TestHeaderAndShortIDs (const CBlock &block, FastRandomContext &ctx)
 
uint64_t GetShortID (const Wtxid &txhash) const
 
 SERIALIZE_METHODS (TestHeaderAndShortIDs, obj)
 

Public Attributes

CBlockHeader header
 
uint64_t nonce
 
std::vector< uint64_t > shorttxids
 
std::vector< PrefilledTransactionprefilledtxn
 

Detailed Description

Definition at line 119 of file blockencodings_tests.cpp.

Constructor & Destructor Documentation

◆ TestHeaderAndShortIDs() [1/2]

TestHeaderAndShortIDs::TestHeaderAndShortIDs ( const CBlockHeaderAndShortTxIDs orig)
inlineexplicit

Definition at line 127 of file blockencodings_tests.cpp.

◆ TestHeaderAndShortIDs() [2/2]

TestHeaderAndShortIDs::TestHeaderAndShortIDs ( const CBlock block,
FastRandomContext ctx 
)
inlineexplicit

Definition at line 132 of file blockencodings_tests.cpp.

Member Function Documentation

◆ GetShortID()

uint64_t TestHeaderAndShortIDs::GetShortID ( const Wtxid txhash) const
inline

Definition at line 135 of file blockencodings_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SERIALIZE_METHODS()

TestHeaderAndShortIDs::SERIALIZE_METHODS ( TestHeaderAndShortIDs  ,
obj   
)
inline

Definition at line 143 of file blockencodings_tests.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ header

CBlockHeader TestHeaderAndShortIDs::header

Definition at line 122 of file blockencodings_tests.cpp.

◆ nonce

uint64_t TestHeaderAndShortIDs::nonce

Definition at line 123 of file blockencodings_tests.cpp.

◆ prefilledtxn

std::vector<PrefilledTransaction> TestHeaderAndShortIDs::prefilledtxn

Definition at line 125 of file blockencodings_tests.cpp.

◆ shorttxids

std::vector<uint64_t> TestHeaderAndShortIDs::shorttxids

Definition at line 124 of file blockencodings_tests.cpp.


The documentation for this class was generated from the following file: