CatapultServer  v0.5.0.1 (Elephant)
catapult::mongo::MongoTransactionMetadata Struct Reference

Mongo transaction metadata. More...

Collaboration diagram for catapult::mongo::MongoTransactionMetadata:

Public Member Functions

 MongoTransactionMetadata (const model::TransactionElement &element)
 Creates a new metadata around element. More...
 
 MongoTransactionMetadata (const model::TransactionElement &element, Height height, uint32_t index)
 Creates a new metadata around element, height and index. More...
 
 MongoTransactionMetadata (const model::TransactionInfo &transactionInfo)
 Creates a new metadata around info. More...
 

Public Attributes

bsoncxx::oid ObjectId
 
const Hash256EntityHash
 Transaction hash. More...
 
const Hash256MerkleComponentHash
 Modified hash that should be used as a hash in the merkle tree. More...
 
const model::UnresolvedAddressSetAddresses
 Addresses involved in the transaction. More...
 
catapult::Height Height
 Height. More...
 
uint32_t Index
 Index of the transaction in the containing block. More...
 

Private Member Functions

 MongoTransactionMetadata (const Hash256 &entityHash, const Hash256 &merkleComponentHash, const model::UnresolvedAddressSet &addresses, Height height, uint32_t index)
 

Detailed Description

Mongo transaction metadata.

Constructor & Destructor Documentation

◆ MongoTransactionMetadata() [1/4]

catapult::mongo::MongoTransactionMetadata::MongoTransactionMetadata ( const model::TransactionElement element)
inlineexplicit

Creates a new metadata around element.

◆ MongoTransactionMetadata() [2/4]

catapult::mongo::MongoTransactionMetadata::MongoTransactionMetadata ( const model::TransactionElement element,
Height  height,
uint32_t  index 
)
inlineexplicit

Creates a new metadata around element, height and index.

◆ MongoTransactionMetadata() [3/4]

catapult::mongo::MongoTransactionMetadata::MongoTransactionMetadata ( const model::TransactionInfo transactionInfo)
inlineexplicit

Creates a new metadata around info.

◆ MongoTransactionMetadata() [4/4]

catapult::mongo::MongoTransactionMetadata::MongoTransactionMetadata ( const Hash256 entityHash,
const Hash256 merkleComponentHash,
const model::UnresolvedAddressSet addresses,
Height  height,
uint32_t  index 
)
inlineprivate

Member Data Documentation

◆ Addresses

const model::UnresolvedAddressSet& catapult::mongo::MongoTransactionMetadata::Addresses

Addresses involved in the transaction.

◆ EntityHash

const Hash256& catapult::mongo::MongoTransactionMetadata::EntityHash

Transaction hash.

◆ Height

catapult::Height catapult::mongo::MongoTransactionMetadata::Height

Height.

◆ Index

uint32_t catapult::mongo::MongoTransactionMetadata::Index

Index of the transaction in the containing block.

◆ MerkleComponentHash

const Hash256& catapult::mongo::MongoTransactionMetadata::MerkleComponentHash

Modified hash that should be used as a hash in the merkle tree.

◆ ObjectId

bsoncxx::oid catapult::mongo::MongoTransactionMetadata::ObjectId

Object id.

Note
bsoncxx::oid constructor is calling bson_oid_init with nullptr context, which uses default threadsafe context from bson_context_get_default to produce process-unique identifiers.

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