6#ifndef OPENCBDC_TX_SRC_ATOMIZER_MESSAGES_H_
7#define OPENCBDC_TX_SRC_ATOMIZER_MESSAGES_H_
80 using errors = std::vector<watchtower::tx_error>;
98 = std::variant<tx_notify_request, prune_request, get_block_request>;
std::variant< tx_notify_request, prune_request, get_block_request > request
Atomizer RPC request.
std::vector< watchtower::tx_error > errors
List of watchtower errors returned by the atomizer state machine.
Transaction notification message with a full set of input attestations.
auto operator==(const aggregate_tx_notification &rhs) const -> bool
uint64_t m_oldest_attestation
Block height of the oldest input attestation used to build this aggregate notification.
transaction::compact_tx m_tx
Compact transaction associated with the notification.
Batch of aggregate transaction notifications.
std::vector< aggregate_tx_notification > m_agg_txs
Batch of aggregate transaction notifications.
auto operator==(const aggregate_tx_notify_request &rhs) const -> bool
Batch of compact transactions settled by the atomizer.
Retrieve cached block request.
uint64_t m_block_height
Block height to retrieve.
Atomizer state machine response from get block request.
block m_blk
Block returned by request.
Placeholder struct for a make block state machine request.
Response from atomizer state machine to a make block request.
block m_blk
Block generated by request.
errors m_errs
Watchtower errors resulting from block creation.
Prune blocks request for RPC and state machine.
uint64_t m_block_height
Block height below which to prune cached blocks.
Transaction notification message.
std::unordered_set< uint64_t > m_attestations
Set of input indexes the shard is attesting are unspent at the given block height.
auto operator==(const tx_notify_request &rhs) const -> bool
transaction::compact_tx m_tx
Compact transaction associated with the notification.
uint64_t m_block_height
Block height at which the given input attestations are valid.
A condensed, hash-only transaction representation.
Messages atomizers and shards can use to transmit errors to the watchtower, and which the watchtower ...