|
| unsigned int | CalcTreeWidth (int height) const |
| | helper function to efficiently calculate the number of nodes at given height in the merkle tree
|
| uint256 | CalcHash (int height, unsigned int pos, const std::vector< Txid > &vTxid) |
| | calculate the hash of a node in the merkle tree (at leaf level: the txid's themselves)
|
| void | TraverseAndBuild (int height, unsigned int pos, const std::vector< Txid > &vTxid, const std::vector< bool > &vMatch) |
| | recursive function that traverses tree nodes, storing the data as bits and hashes
|
| uint256 | TraverseAndExtract (int height, unsigned int pos, unsigned int &nBitsUsed, unsigned int &nHashUsed, std::vector< Txid > &vMatch, std::vector< unsigned int > &vnIndex) |
| | recursive function that traverses tree nodes, consuming the bits and hashes produced by TraverseAndBuild.
|
| unsigned int | nTransactions |
| | the total number of transactions in the block
|
| std::vector< bool > | vBits |
| | node-is-parent-of-matched-txid bits
|
| std::vector< uint256 > | vHash |
| | txids and internal hashes
|
| bool | fBad |
| | flag set when encountering invalid data
|
Definition at line 17 of file pmt_tests.cpp.
◆ CPartialMerkleTreeTester()
◆ Damage()
| void CPartialMerkleTreeTester::Damage |
( |
| ) |
|
|
inline |
◆ m_rng
The documentation for this class was generated from the following file: