CatapultServer
v0.5.0.1 (Elephant)
|
A mixin for adding patricia tree support to a delta cache. More...
Public Member Functions | |
PatriciaTreeDeltaMixin (TSet &set, const std::shared_ptr< TTree > &pTree) | |
Creates a mixin around delta set and pTree. More... | |
bool | supportsMerkleRoot () const |
Returns true if merkle root is supported. More... | |
std::pair< Hash256, bool > | tryGetMerkleRoot () const |
Tries to get the merkle root if supported. More... | |
void | updateMerkleRoot (Height height) |
Recalculates the merkle root given the specified chain height if supported. More... | |
void | setMerkleRoot (const Hash256 &merkleRoot) |
Private Member Functions | |
void | setApplyCheckpoint () |
Private Attributes | |
TSet & | m_set |
std::shared_ptr< TTree > | m_pTree |
uint32_t | m_nextGenerationId |
A mixin for adding patricia tree support to a delta cache.
|
inline |
Creates a mixin around delta set and pTree.
|
inlineprivate |
|
inline |
Sets the merkle root (merkleRoot) if supported.
|
inline |
Returns true
if merkle root is supported.
|
inline |
Tries to get the merkle root if supported.
|
inline |
Recalculates the merkle root given the specified chain height if supported.
|
private |
|
private |
|
private |