CatapultServer  v0.5.0.1 (Elephant)
catapult::validators::ValidatorContext Struct Reference

Contextual information passed to stateful validators. More...

Collaboration diagram for catapult::validators::ValidatorContext:

Public Member Functions

 ValidatorContext (catapult::Height height, Timestamp blockTime, const model::NetworkInfo &network, const model::ResolverContext &resolvers, const cache::ReadOnlyCatapultCache &cache)
 Creates a validator context around a height, blockTime, network, resolvers and cache. More...
 

Public Attributes

const catapult::Height Height
 Current height. More...
 
const Timestamp BlockTime
 Current block time. More...
 
const model::NetworkInfo Network
 Network info. More...
 
const model::ResolverContext Resolvers
 Alias resolvers. More...
 
const cache::ReadOnlyCatapultCacheCache
 Catapult cache. More...
 

Detailed Description

Contextual information passed to stateful validators.

Constructor & Destructor Documentation

◆ ValidatorContext()

catapult::validators::ValidatorContext::ValidatorContext ( catapult::Height  height,
Timestamp  blockTime,
const model::NetworkInfo network,
const model::ResolverContext resolvers,
const cache::ReadOnlyCatapultCache cache 
)
inline

Creates a validator context around a height, blockTime, network, resolvers and cache.

Member Data Documentation

◆ BlockTime

const Timestamp catapult::validators::ValidatorContext::BlockTime

Current block time.

◆ Cache

const cache::ReadOnlyCatapultCache& catapult::validators::ValidatorContext::Cache

Catapult cache.

◆ Height

const catapult::Height catapult::validators::ValidatorContext::Height

Current height.

◆ Network

const model::NetworkInfo catapult::validators::ValidatorContext::Network

Network info.

◆ Resolvers

const model::ResolverContext catapult::validators::ValidatorContext::Resolvers

Alias resolvers.


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