OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
cbdc::atomizer::tx_notify_request Struct Reference

Transaction notification message. More...

#include <messages.hpp>

Collaboration diagram for cbdc::atomizer::tx_notify_request:

Public Member Functions

auto operator== (const tx_notify_request &rhs) const -> bool
 

Data Fields

transaction::compact_tx m_tx
 Compact transaction associated with the notification.
 
std::unordered_set< uint64_t > m_attestations
 Set of input indexes the shard is attesting are unspent at the given block height.
 
uint64_t m_block_height {}
 Block height at which the given input attestations are valid.
 

Detailed Description

Transaction notification message.

Sent from shards to the atomizer. Notifies the atomizer that a shard has received a transaction from a sentinel. The shard attaches an attestation for each transaction input that is covered by the shard's UHS subset, and currently unspent in the UHS. The shard also attaches the block height at which the attestations are valid.

Definition at line 21 of file uhs/atomizer/atomizer/messages.hpp.

Member Function Documentation

◆ operator==()

auto cbdc::atomizer::tx_notify_request::operator== ( const tx_notify_request & rhs) const -> bool

Definition at line 9 of file uhs/atomizer/atomizer/messages.cpp.

Field Documentation

◆ m_attestations

std::unordered_set<uint64_t> cbdc::atomizer::tx_notify_request::m_attestations

Set of input indexes the shard is attesting are unspent at the given block height.

Definition at line 28 of file uhs/atomizer/atomizer/messages.hpp.

Referenced by cbdc::shard::shard::digest_transaction().

◆ m_block_height

uint64_t cbdc::atomizer::tx_notify_request::m_block_height {}

Block height at which the given input attestations are valid.

Definition at line 30 of file uhs/atomizer/atomizer/messages.hpp.

Referenced by cbdc::shard::shard::digest_transaction(), and cbdc::atomizer_client::send_mint_tx().

◆ m_tx

transaction::compact_tx cbdc::atomizer::tx_notify_request::m_tx

Compact transaction associated with the notification.

Definition at line 25 of file uhs/atomizer/atomizer/messages.hpp.

Referenced by cbdc::shard::shard::digest_transaction(), and cbdc::atomizer_client::send_mint_tx().


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