CatapultServer  v0.5.0.1 (Elephant)
catapult::model::BlockNotification Struct Reference

Notifies the arrival of a block. More...

Inheritance diagram for catapult::model::BlockNotification:
Collaboration diagram for catapult::model::BlockNotification:

Public Member Functions

 BlockNotification (const Key &signer, const Key &beneficiary, Timestamp timestamp, Difficulty difficulty)
 Creates a block notification around signer, beneficiary, timestamp and difficulty. More...
 
- Public Member Functions inherited from catapult::model::Notification
 Notification (NotificationType type, size_t size)
 Creates a new notification with type and size. More...
 

Public Attributes

const KeySigner
 Block signer. More...
 
const KeyBeneficiary
 Beneficiary. More...
 
catapult::Timestamp Timestamp
 Block timestamp. More...
 
catapult::Difficulty Difficulty
 Block difficulty. More...
 
Amount TotalFee
 Total block fee. More...
 
uint32_t NumTransactions
 Number of block transactions. More...
 
- Public Attributes inherited from catapult::model::Notification
NotificationType Type
 Notification type. More...
 
size_t Size
 Notification size. More...
 

Static Public Attributes

static constexpr auto Notification_Type = Core_Block_Notification
 Matching notification type. More...
 

Detailed Description

Notifies the arrival of a block.

Constructor & Destructor Documentation

◆ BlockNotification()

catapult::model::BlockNotification::BlockNotification ( const Key signer,
const Key beneficiary,
Timestamp  timestamp,
Difficulty  difficulty 
)
inline

Creates a block notification around signer, beneficiary, timestamp and difficulty.

Member Data Documentation

◆ Beneficiary

const Key& catapult::model::BlockNotification::Beneficiary

Beneficiary.

◆ Difficulty

catapult::Difficulty catapult::model::BlockNotification::Difficulty

Block difficulty.

◆ Notification_Type

constexpr auto catapult::model::BlockNotification::Notification_Type = Core_Block_Notification
staticconstexpr

Matching notification type.

◆ NumTransactions

uint32_t catapult::model::BlockNotification::NumTransactions

Number of block transactions.

◆ Signer

const Key& catapult::model::BlockNotification::Signer

Block signer.

◆ Timestamp

catapult::Timestamp catapult::model::BlockNotification::Timestamp

Block timestamp.

◆ TotalFee

Amount catapult::model::BlockNotification::TotalFee

Total block fee.


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